agent

command
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Interactive streaming REPL for the durable_agent example.

Usage:

go run . [initial prompt]

Streams events delivered via Temporal Workflow Streams, so each run has a durable event log hosted in the Temporal server. Kill the worker or this process mid-run, then restart to observe workflow replay and recovery.

GetAgentStream support: on startup the agent checks for a saved run state (runID + last offset) in /tmp/durable_agent_runstate.json. If one exists it asks whether to reconnect from the last known offset. This demonstrates the full crash-and-recover cycle without any extra infrastructure.

At the "you>" prompt type any message. Approval requests pause the stream and ask for y/n before continuing. Type "exit" or "quit" to stop.

Jump to

Keyboard shortcuts

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