agent_loop

command
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

This example demonstrates the in-process omnix Agent turn/step loop. NewAgent assembles the session log, system prompt, tool pipeline, and LLM adapter. Run(input) starts a turn; each step builds a prompt, streams LLM chunks, and executes any tool calls before continuing or ending the turn. Run: go run ./examples/agent_loop. The scripted adapter makes no network requests; replace it with provider_deepseek.NewDeepSeek(store) for a real model (see examples/usage).

Jump to

Keyboard shortcuts

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