Skip to content

Use contextvars for agent overriding, rather than a local attribute #2118

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Jul 2, 2025

This makes it so overrides to deps and model are actually contextual. Probably merits a test ... but it's annoying to test 🤷‍♂️

Copy link

github-actions bot commented Jul 2, 2025

Docs Preview

commit: b34e7d4
Preview URL: https://7266cd15-pydantic-ai-previews.pydantic.workers.dev

@DouweM DouweM merged commit 7800990 into main Jul 2, 2025
18 checks passed
@DouweM DouweM deleted the dmontagu/fix-agent-override-logic branch July 2, 2025 21:15
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