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

Remove last_run_messages add capture_run_messages #536

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

samuelcolvin
Copy link
Member

last_run_messages was mutable on instances of Agent that should be public, so could have caused nasty bugs.

This removes it and provides a capture_run_messages() context manager to use instead.

Copy link

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

Deploying pydantic-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: e46f0c2
Status: ✅  Deploy successful!
Preview URL: https://546863d6.pydantic-ai.pages.dev
Branch Preview URL: https://remove-last-run-messages.pydantic-ai.pages.dev

View logs

@samuelcolvin samuelcolvin merged commit 6ff3619 into main Dec 23, 2024
16 checks passed
@samuelcolvin samuelcolvin deleted the remove-last_run_messages branch December 23, 2024 16:35
@samuelcolvin samuelcolvin changed the title Remove last run messages Remove last_run_messages add capture_run_messages Dec 23, 2024
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.

1 participant