Skip to content

Support printing reasons in the console output for pydantic-evals #2163

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Jul 9, 2025

This adds an include_reasons kwarg to the rendering methods for evaluation reports, to allow you to include reasons in the console output.

Not sure whether we should put reasons in their own columns or just next to the values like we do in this PR. It remains off by default because it can be a bit visually loud and viewing the results in Logfire is probably a better experience most of the time, but with this PR you can opt into this behavior.

Looking for some user feedback before we add tests and merge this.

Copy link

github-actions bot commented Jul 9, 2025

Docs Preview

commit: fbba591
Preview URL: https://507e7332-pydantic-ai-previews.pydantic.workers.dev

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