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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcpx_pydantic_ai-0.3.2.tar.gz
Algorithm Hash digest
SHA256 503a4d707b6722a7c4bcd00ef3b6fc92cce867f0b5a63278029a63dfea2bddb6
MD5 51d719eb862e881e404bd0251a9f7700
BLAKE2b-256 60658980dc7fb8a87772d6f3d94994043a5a6031fb423cd78d1bd1e3308b8263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpx_pydantic_ai-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ecf42ce9e0a426604853953815d1b331a2a0d156679b801d5b2294032f81429
MD5 27b780fa18fc7409f3cf9d23f690e6dd
BLAKE2b-256 dce1c50ea7f9303be599e42f857dc949d1ceaa0d65999418a273f81f99fe8237

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