API Reference¶
Complete API documentation for RobotLab.
Core Classes¶
The fundamental building blocks of RobotLab:
| Class | Description |
|---|---|
| Robot | LLM-powered agent with personality and tools |
| Network | Orchestrates multiple robots |
| State | Manages conversation and workflow data |
| Tool | Custom function robots can call |
| Memory | Shared key-value store |
Messages¶
Message types for LLM communication:
| Class | Description |
|---|---|
| UserMessage | User input with metadata |
| TextMessage | Assistant text response |
| ToolCallMessage | Tool execution request |
| ToolResultMessage | Tool execution result |
Adapters¶
Provider-specific message conversion:
| Class | Description |
|---|---|
| Anthropic | Claude models adapter |
| OpenAI | GPT models adapter |
| Gemini | Google Gemini adapter |
MCP (Model Context Protocol)¶
Connect to external tool servers:
| Class | Description |
|---|---|
| Client | MCP server connection |
| Server | Server configuration |
| Transports | Connection transports |
Streaming¶
Real-time response streaming:
| Class | Description |
|---|---|
| Context | Streaming context |
| Events | Event utilities |
History¶
Conversation persistence:
| Class | Description |
|---|---|
| Config | History configuration |
| ThreadManager | Thread lifecycle |
| ActiveRecordAdapter | Rails adapter |
Module Methods¶
RobotLab¶
# Configuration
RobotLab.configuration
RobotLab.configure { |config| ... }
# Building
RobotLab.build { ... }
RobotLab.create_network { ... }
RobotLab.create_state(...)
See individual class documentation for detailed method references.