Easily integrate Large Language Models into your Python code. Simply use the @prompt and @chatprompt decorators to create functions that return structured output from the LLM. Mix LLM queries and function calling with regular Python code to create complex logic.
Features
- Structured Outputs using pydantic models and built-in python types
- Chat Prompting to enable few-shot prompting with structured examples
- Function Calling and Parallel Function Calling via the FunctionCall and ParallelFunctionCall return types
- Formatting to naturally insert python objects into prompts
- Asyncio. Simply use async def when defining a magentic function
- Streaming structured outputs to use them as they are being generated
License
MIT LicenseFollow magentic
Other Useful Business Software
Virtual data rooms designed to achieve better outcomes
Ansarada is a SaaS company that provides world-leading AI-powered Virtual Data Rooms and dealmaking tools. These tools include advanced AI insights and automation, next level Q&A and collaboration, plus pre-built, digitized and customizable workflows and checklists - known as Pathways - for M&A, capital raising, business audits, tenders and other high stakes outcomes.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of magentic!