discovered 03 Aug 2026
magentic
→ View on GitHubmagentic is a Python library designed to integrate Large Language Models (LLMs) into Python code through the use of decorators like `@prompt` and `@chatprompt`, enabling function creation that returns structured outputs. It features observability with OpenTelemetry, supports multiple LLM providers, and offers functionalities such as streaming, LLM-assisted retries, and type annotations for enhanced developer experience. This tool is particularly useful for building complex agentic systems that necessitate the interaction of LLM queries with traditional programming constructs.