Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
Kludex merged 15 commits intomainfrommcp-sampling
Jun 19, 2025
Merged

Support MCP sampling#1884

Kludex merged 15 commits intomainfrommcp-sampling
Jun 19, 2025

Conversation

samuelcolvin
Copy link
Member

Both client and server.

To visualize, needspydantic/logfire#1103.

danb27 reacted with eyes emoji
@github-actionsGitHub Actions
Copy link

github-actionsbot commentedJun 2, 2025
edited
Loading

Docs Preview

commit:4b315a3
Preview URL:https://cc1c0e78-pydantic-ai-previews.pydantic.workers.dev

if isinstance(content, mcp_types.TextContent):
user_part_content: str | Sequence[messages.UserContent] = content.text
else:
# image content
Copy link
Contributor

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?

Copy link
Member

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

@samuelcolvinsamuelcolvin marked this pull request as ready for reviewJune 18, 2025 19:14
@DouweMDouweM mentioned this pull requestJun 19, 2025
6 tasks
@KludexKludex changed the titleMCP samplingSupport MCP samplingJun 19, 2025
@KludexKludexenabled auto-merge (squash)June 19, 2025 06:15
@KludexKludex merged commitbe5cda6 intomainJun 19, 2025
16 checks passed
@KludexKludex deleted the mcp-sampling branchJune 19, 2025 06:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@DouweMDouweMDouweM left review comments

@KludexKludexKludex approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@samuelcolvin@DouweM@Kludex

[8]ページ先頭

©2009-2025 Movatter.jp