PyPI - Version PyPI - Python Version Test Status

What is Lasagna AI?

Lasagna AI is a production-minded agent-building library. Build powerful layered agents (multi-agent systems) from simple components. πŸ’ͺ

Getting Started

Start with:

Features

πŸ₯ž Layered agents!

  • Agents for your agents!
  • Tool-use, structured output (β€œextraction”), and layering FTW πŸ’ͺ
  • Ever wanted a recursive agent? Now you can have one! 🀯
  • Parallel tool-calling by default.
  • Fully asyncio.
  • 100% Python type hints.
  • Functional-style 😎
  • (optional) Easy & pluggable caching! 🏦

🚣 Streamable!

  • Event streams for everything.
  • Asyncio generators are awesome.

πŸ—ƒοΈ Easy database integration!

  • Don’t rage when trying to store raw messages and token counts. 😑 🀬
  • Yes, you can have both streaming and easy database storage.

β†”οΈŽοΈ Provider/model agnostic and interoperable!

  • Core support for OpenAI, Anthropic, and AWS Bedrock.
  • Experimental support for Ollama and NVIDIA NIM/NGC.
  • Message representations are canonized. πŸ˜‡
  • Supports vision!
  • Easily build committees!
  • Swap providers or models mid-conversation.
  • Delegate tasks among model providers or model sizes.
  • Parallelize all the things.