Quick Start
How It Works
Local managed agents provide the same APIs as cloud providers while keeping data on your infrastructure.Configuration Options
ManagedConfig Fields
| Option | Type | Default | Description |
|---|---|---|---|
model | str | "gpt-4o-mini" | OpenAI model to use |
system | str | "You are a helpful assistant." | System prompt |
name | str | "Agent" | Agent display name |
tools | List[str] | [] | Enabled tool names |
temperature | float | 0.7 | Response randomness |
max_tokens | int | 1000 | Maximum response length |
Session Management
Persistent Sessions
Resume Sessions
Multi-turn Conversations
Usage Tracking
Best Practices
Model Selection
Model Selection
Use
gpt-4o-mini for cost-effective operations. Upgrade to gpt-4o for complex reasoning tasks. Configure appropriate max_tokens to control costs.Session Persistence
Session Persistence
Save session IDs using
save_ids() for resuming conversations. Store IDs in a database or file system for persistence across application restarts.Tool Configuration
Tool Configuration
Only enable tools your agent needs. Use selective tool lists like
["web_search", "calculator"] instead of all tools to improve performance.Error Handling
Error Handling
Implement proper error handling for API failures. Local managed agents depend on OpenAI API availability and rate limits.
Related
Managed Agents
Overview of managed agent concepts
Docker Compute
Containerized execution environments

