-
Notifications
You must be signed in to change notification settings - Fork 318
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
Prioritize tool calls over eager text responses #505
Conversation
Deploying pydantic-ai with Cloudflare Pages
|
Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
…dantic/pydantic-ai into fix-mixed-tool-text-responses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a test to test_agent.py
that demonstrates this behaviour.
system_prompt='Be concise, reply with one sentence.', | ||
system_prompt=( | ||
'Be concise, reply with one sentence.' | ||
'Use the `get_lat_lng` tool to get the latitude and longitude of the locations, ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth having a comment here saying
''Be concise, reply with one sentence.' is enough for some models like openAI, but Gemini in particular needs this explicit prompt
Fix #268
Fix #363
Fix #510