Prompt Content
Using Pydantic, define two robust data models: `ArticleSummary` and `RecommendationItem`. `ArticleSummary` should include fields like `title`, `key_points` (list of strings), and `sentiment`. `RecommendationItem` should contain `article_id`, `title`, `relevance_score` (float), and `reason`. These models will enforce the structure of your agent's outputs. Provide the Python code for these Pydantic models.
Try this prompt
Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.
Related Prompts
Explore similar prompts from our community
Usage Tips
Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)
Customize placeholder values with your specific requirements and context
For best results, provide clear examples and test different variations