Skip to main content
The praisonaiagents.lite subpackage provides a minimal agent framework that lets you bring your own LLM client — no litellm dependency and minimal memory.
The user sends a chat message; LiteAgent calls your LLM function with minimal framework overhead.

How It Works

Quick Start

1

Create a lite agent

2

Add tools

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:

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
Use the full package when:
  • You need multi-provider support via litellm
  • You want automatic model routing
  • You need advanced features (memory, knowledge, etc.)

Best Practices

The lite subpackage suits custom integrations that call OpenAI or Anthropic directly.
Switch to the full SDK when you need litellm, memory, knowledge, or automatic model routing.
Measure import time and memory on your deployment target — lite shines on edge and serverless.
Lite and full packages share core protocols — pin both SDK and wrapper versions together.

Lazy Imports

Fast startup and minimal memory

Lite Package CLI

CLI commands for the lite subpackage