Title: This is a Python package that allows you to write function signatures to define LLM queries. This makes it easy to mix regular code with calls to LLMs, which enables you to use the LLM for its creativity and reasoning while also enforcing structure&#x2F;logic as necessary. LLM output is parsed for you according to the return type annotation of the function, including complex return types such as streaming an array of structured objects.<p>I built this to show that we can think about using LLMs more fluidly than just chains and chats, i.e. more interchangeably with regular code, and to make it easy to do that.<p>Please let me know what you think! Contributions welcome.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jackmpcollins&#x2F;magentic">https:&#x2F;&#x2F;github.com&#x2F;jackmpcollins&#x2F;magentic</a>
Upvote: