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.1.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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcpx_pydantic_ai-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 448d5596dbf5213667400f0b8e4fb1a48c3caed17c768b0b62ceb1cddc17b8e6
MD5 7b2a084c3afe53fd7a96801db8596af9
BLAKE2b-256 828926aee632c58dce02e3b9466e6be577f0cfd71baf28631c0c561245e07b5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpx_pydantic_ai-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 688b4708b5788013cb9005071a712bcc5891c3ca8553c5e1680bc3edb8c84f46
MD5 c50dd35ad372eaa28f35c47d67443381
BLAKE2b-256 032210f7d647538b488d83b756c20aef71dd81c3e80b1398011a5abc7346ba83

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