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.4.0.tar.gz (2.7 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.4.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcpx_pydantic_ai-0.4.0.tar.gz
Algorithm Hash digest
SHA256 99852eec3bdc66a93dcc9c9a4c6cca3b898dc7c0f553069b4a64027b070ccc87
MD5 dd1fcc70683dd71f9427b2d829954d68
BLAKE2b-256 4975881f7ecc317d486020bef378527c4bd9a6bc074faaed73d3bd4749c13bcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpx_pydantic_ai-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d42e4b0227a591229773aeedcfad49f3aba51e712d73deab4a5306317e94c45
MD5 cbcd928fab048646a8ae6a18ca3809e7
BLAKE2b-256 66c6b150787ecc239eb1ed6ae7719619aaf449e80a6bcc87f4577159a5c9351e

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