Pydantic Agent Model Definition

implementationChallenge

Prompt Content

Define a Pydantic model for a 'FinancialAnalystAgent' that processes structured financial data and outputs a 'FinancialSummary' Pydantic model. Show how to instantiate this agent and use it to call GPT-5 via Amazon Bedrock for calculating valuation ranges. Include Python code snippets for Pydantic model definitions and agent initialization.

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