关于
This example showcases how to connect MCP servers to Pydantic Agents, enabling interaction with language models. It utilizes a weather server example adapted from the Model Context Protocol quickstart resources and demonstrates the use of two different LLMs (gpt-4o and sonnet) for proxy agent and tool functionality. The code provides sample clients to interact with the server using either direct Anthropic library calls or a pure PydanticAI approach.
主要功能
- 12 GitHub stars
使用案例
- Interacting with a weather server using natural language queries.
- Using language models to process and respond to requests through a proxy agent.
- Demonstrating the integration of MCP servers with Pydantic Agents.