Documentation
¶
Overview ¶
Example programmatic demonstrates the comprehensive programmatic API of Hector.
This example shows how to build a complete agentic system without any YAML configuration, using only Go code. It demonstrates:
- Building LLMs with fluent API
- Creating custom function tools
- Building agents with reasoning
- Multi-agent patterns (sub-agents and agent tools)
- Running agents with sessions
- Setting up RAG with document stores
Prerequisites:
- Set OPENAI_API_KEY environment variable
Run:
go run ./pkg/examples/programmatic
Click to show internal directories.
Click to hide internal directories.