8000 Toolsets by DouweM · Pull Request #2024 · pydantic/pydantic-ai · GitHub
[go: up one dir, main page]

Skip to content

Toolsets #2024

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

Draft
wants to merge 68 commits into
base: main
Choose a base branch
from
Draft

Toolsets #2024

wants to merge 68 commits into from

Conversation

DouweM
Copy link
Contributor
@DouweM DouweM commented Jun 19, 2025

To fix:

  • MCPToolset
  • Retry counting
  • Streaming tool calls

To improve:

  • Name conflict error messages and logic
  • Performance, caching when possible
  • Considering making MCPServer a toolset, instead of needing MCPServer.as_toolset()
  • Various other TODO comments
  • How output tools are handled

To add:

DouweM added 30 commits June 3, 2025 03:20
# Conflicts:
#	tests/models/test_openai.py
# Conflicts:
#	pydantic_ai_slim/pydantic_ai/_output.py
#	pydantic_ai_slim/pydantic_ai/models/openai.py
#	tests/models/test_openai.py
# Conflicts:
#	pydantic_ai_slim/pydantic_ai/models/openai.py
#	pydantic_ai_slim/pydantic_ai/profiles/openai.py
#	tests/models/test_google.py
#	tests/models/test_openai_responses.py
# Conflicts:
#	pydantic_ai_slim/pydantic_ai/_utils.py
#	pydantic_ai_slim/pydantic_ai/agent.py
#	tests/models/test_anthropic.py
#	tests/test_utils.py
@DouweM DouweM self-assigned this Jun 19, 2025
Copy link
Contributor
hyperlint-ai bot commented Jun 19, 2025

PR Change Summary

Enhanced toolset functionality and improved documentation for the Pydantic AI library.

  • Resolved name conflict errors and improved retry counting.
  • Refined handling of output tools and enabled parallel execution of tools.
  • Introduced new features for MCP sampling and external promise resolution.
  • Updated documentation to reflect changes in toolset usage.

Modified Files

  • docs/api/result.md
  • docs/mcp/client.md
  • docs/output.md
  • mcp-run-python/README.md

Added Files

  • docs/api/output.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link
github-actions bot commented Jun 19, 2025

Docs Preview

commit: 0e0bf35
Preview URL: https://76a47ded-pydantic-ai-previews.pydantic.workers.dev

DouweM and others added 13 commits June 20, 2025 23:57
# Conflicts:
#	docs/api/output.md
#	docs/output.md
#	pydantic_ai_slim/pydantic_ai/__init__.py
#	pydantic_ai_slim/pydantic_ai/_agent_graph.py
#	pydantic_ai_slim/pydantic_ai/_output.py
#	pydantic_ai_slim/pydantic_ai/_run_context.py
#	pydantic_ai_slim/pydantic_ai/_utils.py
#	pydantic_ai_slim/pydantic_ai/agent.py
#	pydantic_ai_slim/pydantic_ai/models/__init__.py
#	pydantic_ai_slim/pydantic_ai/models/gemini.py
#	pydantic_ai_slim/pydantic_ai/models/google.py
#	pydantic_ai_slim/pydantic_ai/models/openai.py
#	pydantic_ai_slim/pydantic_ai/output.py
#	pydantic_ai_slim/pydantic_ai/profiles/__init__.py
#	pydantic_ai_slim/pydantic_ai/profiles/google.py
#	pydantic_ai_slim/pydantic_ai/profiles/openai.py
#	pydantic_ai_slim/pydantic_ai/tools.py
#	tests/models/cassettes/test_google/test_google_model_structured_output.yaml
#	tests/models/test_anthropic.py
#	tests/models/test_gemini.py
#	tests/models/test_google.py
#	tests/models/test_openai.py
#	tests/models/test_openai_responses.py
#	tests/test_agent.py
#	tests/test_streaming.py
#	tests/test_tools.py
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.

Toolset, take 3
1 participant
0