Examples
Short walkthroughs, each focused on one task with the Robota libraries or the robota CLI. Every
snippet uses the packages' current public APIs. For complete projects you can clone and run (web
servers, bots, scripts, single-capability demos), see examples/ in the
repository.
Agent core
- Basic Conversation — an agent that keeps conversation history across runs
- Tool Calling — Zod-validated function tools, built-in file and shell tools, and sandboxed tools
- Multi-Provider — registering Anthropic, OpenAI, DeepSeek, Gemini, Gemma and Qwen on one agent and switching between them
- Streaming — text as the model generates it
Sessions
- One-Shot Query — a prompt-in, answer-out function with
createQuery() - Session Management —
InteractiveSessionevents, persistence, resume and fork
CLI
- Interactive Mode — the terminal UI: slash commands, permission prompts, status line
- Print Mode —
robota -pfor scripts and pipelines
Transports
- HTTP Transport — a session behind REST endpoints with SSE streaming
- WebSocket Transport — a session over a WebSocket connection
- MCP Transport — a session as a Model Context Protocol server