- Notifications
You must be signed in to change notification settings - Fork1k
Support MCP sampling#1884
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Support MCP sampling#1884
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedJun 2, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Docs Preview
|
if isinstance(content, mcp_types.TextContent): | ||
user_part_content: str | Sequence[messages.UserContent] = content.text | ||
else: | ||
# image content |
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.
Should we usepydantic_ai.mcp._map_tool_result_part
here, to cover all types of content?
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.
Some type incompatibilities, let's do this later
be5cda6
intomainUh oh!
There was an error while loading.Please reload this page.
Both client and server.
To visualize, needspydantic/logfire#1103.