praisonaiagents.lite subpackage provides a minimal agent framework that lets you bring your own LLM client — no litellm dependency and minimal memory.
How It Works
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.)
Best Practices
Use lite when you own the LLM client
Use lite when you own the LLM client
The lite subpackage suits custom integrations that call OpenAI or Anthropic directly.
Install full package for multi-provider routing
Install full package for multi-provider routing
Switch to the full SDK when you need litellm, memory, knowledge, or automatic model routing.
Benchmark startup in your environment
Benchmark startup in your environment
Measure import time and memory on your deployment target — lite shines on edge and serverless.
Pin versions in production
Pin versions in production
Lite and full packages share core protocols — pin both SDK and wrapper versions together.
Related
Lazy Imports
Fast startup and minimal memory
Lite Package CLI
CLI commands for the lite subpackage

