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

Project Samples

Project Activity

See All Activity >

Categories

Agentic AI

License

MIT License

Follow magentic

magentic Web Site

You Might Also Like
Omnichannel contact center platform for enterprises. Icon
Omnichannel contact center platform for enterprises.

For Call centers or BPOs with a very high volume of calls

Deliver a personalized customer experience with every interaction, across every channel, with uContact, net2phone’s cloud contact center solution.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of magentic!

Additional Project Details

Programming Language

Python

Related Categories

Python Agentic AI Framework

Registered

7 hours ago