Skip to main content

Pydantic Agent with mcp.run tools

Project description

mcpx-pydantic-ai

A Python library for using mcp.run tools with pydantic-ai

Example

agent = Agent("claude-3-5-sonnet-latest", result_type=int)
results = agent.run_sync(
    "find the largest prime under 1000 that ends with the digit '3'"
)
print(results.data)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpx_pydantic_ai-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpx_pydantic_ai-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file mcpx_pydantic_ai-0.1.0.tar.gz.

File metadata

  • Download URL: mcpx_pydantic_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.3

File hashes

Hashes for mcpx_pydantic_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b7c1931091e86e7db300d3274240fa6021c5de06b327d7a9e96b720183bb15f8
MD5 96651b835620671b0f3c0be4c3bff24a
BLAKE2b-256 0522472711ea7543dfe38fc48213a07f1dd4cd2cbd458544a8de2c9e7e96434f

See more details on using hashes here.

File details

Details for the file mcpx_pydantic_ai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcpx_pydantic_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6c02823e607ced8e8e7691cc52c848c3658eba9b1ef68c58fc61563656e9d7
MD5 20e0afd72e2371976741df83f513b920
BLAKE2b-256 ecf6629606ce4d6ca1b018ce5b77637d32647491719b31800934dfc0229e3f2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page