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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcpx_pydantic_ai-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c9f3c2426923f311210d4f3b1a7a9329205d8e92ee116ac5707f4b3b459544b2
MD5 a0e547c2fb8a77f5f7aabc5a622c155e
BLAKE2b-256 71e2888544ebd0cff37e1c1caa0daf9ef234bb8d15e4ff8e9fa97626794da885

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpx_pydantic_ai-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a08955294f692794e9e17dfafe2d55e072c409ab964ad8d2b79b6a1bde84d5d8
MD5 60263319a846f6d069e89c661ca4682a
BLAKE2b-256 392cd5825e8d18909b57a1cd25f40b632f0a30d42d485db982460004716a8018

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