jackmpcollins/magentic

Seamlessly integrate LLMs as Python functions

52
/ 100
Established

Provides decorator-based function generation with streaming support for structured outputs validated against Pydantic models, automatic LLM-assisted retries to enforce schema compliance, and tool-use orchestration via function calling and chaining. Supports multiple LLM providers (OpenAI, Anthropic, Ollama) with built-in observability through OpenTelemetry and Pydantic Logfire, alongside async/await and concurrent streaming capabilities.

2,394 stars. Actively maintained with 2 commits in the last 30 days.

No Package No Dependents
Maintenance 16 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 17 / 25

How are scores calculated?

Stars

2,394

Forks

120

Language

Python

License

MIT

Last pushed

Mar 11, 2026

Commits (30d)

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/jackmpcollins/magentic"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.