Tiny Agent Loop
This crate provides a high-level abstraction around async-openai that implements a very simple agent loop.
Crates like async-openai provide fine-grained API access to LLMs,
but they require quite a bit of boilerplate to implement a simple agent loop.
tiny-agent-loop instead provides a very simple interface that you can use to implement an agent loop in a few dozen lines of code.
When to use
Use tiny-agent-loop for prototypes with (local) LLMs.
If you are building something more serious, you should use one of the more feature-complete libraries instead.
Example
let result = new.run.await;