cli

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command cli is a minimal, runnable demo of agentloop: in-memory session/step stores, the default capability bundle (require, http, fetch, markdown, ai), and one Run call against an OpenAI-wire-compatible LLM.

Usage:

export OPENAI_API_KEY=sk-...
# OpenAI is the default; point OPENAI_BASE_URL elsewhere for
# OpenRouter / EdenAI / a local gateway — see llm.ConfigFromEnv.
go run ./examples/cli "What's 12 * 7? Answer as a single number."

Jump to

Keyboard shortcuts

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