basic

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 15 Imported by: 0

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).

Jump to

Keyboard shortcuts

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