Documentation
¶
Overview ¶
Command basic is the runnable end-to-end example for resolute-harness-go: one agent definition with per-instance setup, a SQLite store, a logging Observer, a timing Interceptor, and one real tool, served over HTTP.
Run it keyless (a deterministic local provider stands in for the model):
go run ./examples/basic
or against Gemini by setting GEMINI_API_KEY (and optionally MODEL, e.g. "gemini/gemini-3.1-pro-preview").
Then, in another terminal:
# dispatch asynchronously (202 + ids), or block on the result:
curl -s localhost:8484/agents/assistant/demo -d '{"kind":"user","body":"what time is it?"}'
curl -s 'localhost:8484/agents/assistant/demo?wait=true' -d '{"kind":"user","body":"hello there"}'
# watch the conversation live (replay + tail; reconnect with Last-Event-ID):
curl -N localhost:8484/agents/assistant/demo
Durability walkthrough: dispatch a prompt, `kill -9` this process before it settles, start it again — the submission is reclaimed on the same SQLite store, re-attempted, and settles; the SSE replay shows records from both attempts (distinguished by attemptId).
Click to show internal directories.
Click to hide internal directories.