Layered agents!
Project description
Lasagna AI
-
🥞 Layered agents!
- Agents for your agents!
- Tool-use 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!
- Native support for OpenAI, Anthropic, MistralAI (+ more to come).
- 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.
Table of Contents
Installation
pip install -U lasagna-ai[openai,anthropic]
Quickstart
TODO
Debug Logging
This library logs using Python's builtin logging
module. It logs mostly to INFO
, so here's a snippet of code you can put in your app to see those traces:
import logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
)
# ... now use Lasagna as you normally would, but you'll see extra log traces!
License
lasagna-ai
is distributed under the terms of the MIT license.
Joke Acronym
Layered Agents with toolS And aGeNts and Ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lasagna_ai-0.4.0.tar.gz
(53.7 kB
view hashes)
Built Distribution
lasagna_ai-0.4.0-py3-none-any.whl
(19.1 kB
view hashes)
Close
Hashes for lasagna_ai-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2003412dee44aef56a2e2197812e873d0ef5581304bd1564178266eb0cba3716 |
|
MD5 | f0ab64596dbb82a749b442b6d7f85f2f |
|
BLAKE2b-256 | 8d4a10681575d00330594d250ce0a6c9c06abf3c805352dce4b6d3f0f1f5c3d0 |