Lite Package (BYO-LLM)
Thepraisonaiagents.lite subpackage provides a minimal agent framework that lets you bring your own LLM client. It has no dependency on litellm and uses minimal memory.
Installation
The lite package is included in praisonaiagents v0.5.0+:Quick Start
Components
LiteAgent
The main agent class with thread-safe chat history:Custom LLM Functions
Bring your own LLM by providing a function that takes messages and returns a string:Built-in LLM Adapters
OpenAI Adapter
Anthropic Adapter
Tools
Define tools using the@tool decorator:
LiteTask
For structured task execution:Thread Safety
LiteAgent uses locks for thread-safe operations:Memory Efficiency
The lite package uses significantly less memory than the full package:| Package | Memory Usage |
|---|---|
| praisonaiagents (full) | ~93MB |
| praisonaiagents.lite | ~5MB |
When to Use Lite
Use the lite package when:- You want minimal dependencies
- You have your own LLM client
- Memory usage is critical
- You need fast startup time
- You’re building a custom integration
- You need multi-provider support via litellm
- You want automatic model routing
- You need advanced features (memory, knowledge, etc.)

