Overview
Wrap your LangChain, OpenAI, Anthropic, or LlamaIndex agent in one line — or build a custom agent from scratch. Deploy and start streaming responses to your users.LangChain
Wrap LangChain agents
OpenAI
Wrap OpenAI client
Anthropic
Wrap Anthropic client
LlamaIndex
Wrap LlamaIndex agents
Building from scratch? Continue below to create a custom agent.
Installation
Custom Agent Example
Create agents using the@agent decorator. Use the template option for standard I/O shapes (e.g. prompt, chat, task, rag, thread):
Agent Structure
An agent consists of:| Component | Description |
|---|---|
| name | Unique identifier (from function name or override) |
| description | From docstring or explicit parameter |
| input schema | Inferred from type hints (or explicit) |
| handler | The handler function |
Running Locally
Test your agent before deploying:Project Structure
Recommended structure for your agent project:my-agent
main.py
pyproject.toml
pyproject.toml
Prefer module-based projects? Add a
start script — see Project Configuration for details.