mirascope  by Mirascope

LLM abstractions library with a unified provider interface

created 1 year ago
1,236 stars

Top 32.5% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Mirascope is a Python library designed to simplify interactions with various Large Language Models (LLMs) by providing a unified interface. It aims to streamline development for tasks like text generation, structured data extraction, and building AI agent systems, catering to developers working with multiple LLM providers.

How It Works

Mirascope offers a declarative approach to LLM interactions, allowing users to define prompts and expected response structures using Python type hints and Pydantic models. This abstraction layer routes calls to different LLM providers through a consistent API, simplifying integration and reducing boilerplate code. The library handles prompt formatting, API calls, and response parsing, abstracting away provider-specific nuances.

Quick Start & Requirements

Highlighted Details

  • Unified interface for OpenAI, Anthropic, Mistral, Google (Gemini/Vertex), Groq, Cohere, LiteLLM, Azure AI, and Bedrock.
  • Supports structured output generation using Pydantic models.
  • Declarative LLM calling syntax via decorators.
  • Semantic Versioning for releases.

Maintenance & Community

  • The project is actively maintained.
  • Community links are not explicitly provided in the README.

Licensing & Compatibility

  • License: MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

The README does not detail specific limitations, unsupported features, or known issues. The breadth of supported providers suggests potential complexity in managing provider-specific behaviors or edge cases.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
64
Issues (30d)
7
Star History
154 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.