Examples
Working code samples for common Robota SDK use cases.
Agent Core
- Basic Conversation — Simple agent with conversation history
- Tool Calling — Agents that call functions
- Multi-Provider — Switching between Anthropic, OpenAI, Google
- Streaming — Real-time text output
SDK
- One-Shot Query — Using
query()for single-turn interactions - Session Management — Multi-turn sessions with
createSession()
CLI
- Interactive Mode — TUI features and slash commands
- Print Mode — One-shot CLI usage for scripts and pipelines
Transport Adapters
- HTTP Transport — REST API with SSE streaming
- WebSocket Transport — Real-time bidirectional
- MCP Transport — Model Context Protocol