Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use isinstance checks for message kinds #252

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Conversation

sydney-runkle
Copy link
Member

Follow up based on #247 (comment)

Copy link

cloudflare-workers-and-pages bot commented Dec 14, 2024

Deploying pydantic-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e05f7b
Status: ✅  Deploy successful!
Preview URL: https://e976700d.pydantic-ai.pages.dev
Branch Preview URL: https://isinstance-approach.pydantic-ai.pages.dev

View logs

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

pydantic_ai_slim/pydantic_ai/agent.py Show resolved Hide resolved
@samuelcolvin samuelcolvin merged commit ccd26a1 into main Dec 14, 2024
15 checks passed
@samuelcolvin samuelcolvin deleted the isinstance-approach branch December 14, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants