Implement Pydantic AI Summarization Agent with Mistral-large

implementationChallenge

Prompt Content

Create a Pydantic AI agent (e.g., `SummarizerAgent`) that takes raw article text as input and uses the `Mistral-large` model to generate an `ArticleSummary` object. Ensure the agent's output is strictly validated against your `ArticleSummary` Pydantic model. Include Python code for initializing the agent and a sample call. Focus on the agent's ability to produce valid, structured output.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

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