programmatic

command
v1.31.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL