andrewyng/aisuite
A lightweight Python library offering a unified API to interact with multiple generative AI providers through a single consistent interface.

The library abstracts away SDK differences, authentication details, and parameter variations across providers like OpenAI, Anthropic, Google, Hugging Face, AWS, Cohere, Mistral, and Ollama. It includes simple abstractions for creating standalone lightweight agents using a multi-turn interface and supports passing real Python functions as tools, automatically handling schema generation and execution. MCP tools are also supported natively.