Runnable programs demonstrating each saige subsystem. Every example is a standalone main package:
go run ./examples/agent/basic/
go run ./examples/knowledge/basic/
go run ./examples/rag/arxiv/| Example | Description |
|---|---|
agent/basic |
Single tool with Ollama |
agent/streaming |
All delta types with ANSI output |
agent/subagents |
Parent delegating to researcher |
agent/concurrent-subagents |
Parallel sub-agent execution |
agent/resilient |
Retry + fallback composition |
agent/multimodal |
File pipeline with file:// resolver |
agent/caching |
Response caching by request hash |
agent/durable |
DBOS-backed durable runs |
agent/handoffs |
Agent-to-agent handoffs |
agent/tui |
Interactive and verbose TUI modes |
agent/runner |
Multi-turn conversation loop |
| Example | Description |
|---|---|
knowledge/basic |
Build and query a knowledge graph |
| Example | Description |
|---|---|
rag/arxiv |
Full pipeline with arXiv papers |
validation/ runs live end-to-end checks against real providers. See its README.