Directories
¶
| Path | Synopsis |
|---|---|
|
Command chaosbench runs the crash-injection benchmark: it drives a non-idempotent side effect through an exhaustive crash-point sweep plus randomized multi-crash schedules, and reports whether the side effect ever fired more than once.
|
Command chaosbench runs the crash-injection benchmark: it drives a non-idempotent side effect through an exhaustive crash-point sweep plus randomized multi-crash schedules, and reports whether the side effect ever fired more than once. |
|
Command eval shows how to use the statistical evaluation harness.
|
Command eval shows how to use the statistical evaluation harness. |
|
Command hedge shows the hedged-model middleware: race the primary model against a backup and take the first good answer, which cuts tail latency and fails over around a down provider.
|
Command hedge shows the hedged-model middleware: race the primary model against a backup and take the first good answer, which cuts tail latency and fails over around a down provider. |
|
Command interrupt shows human-in-the-loop as a durable pause: a retry-safe tool calls agent.Interrupt to ask a human a typed question, Run returns *Interrupted (the run has paused at the interrupt point), the caller records an answer with agent.Resume, and re-invoking Run with the SAME runID resumes past the interrupt with that answer.
|
Command interrupt shows human-in-the-loop as a durable pause: a retry-safe tool calls agent.Interrupt to ask a human a typed question, Run returns *Interrupted (the run has paused at the interrupt point), the caller records an answer with agent.Resume, and re-invoking Run with the SAME runID resumes past the interrupt with that answer. |
|
Command parallel shows agent.Parallel: a durable, auditable fan-out/fan-in.
|
Command parallel shows agent.Parallel: a durable, auditable fan-out/fan-in. |
|
Command rag shows bring-your-own retrieval: a trivial in-memory Retriever wired two ways.
|
Command rag shows bring-your-own retrieval: a trivial in-memory Retriever wired two ways. |
|
Command recover shows durable resume via named-step memoization: a run journals its model turns and tool results to the store, so re-invoking Run with the SAME runID against the SAME store reuses the recorded steps rather than re-running them.
|
Command recover shows durable resume via named-step memoization: a run journals its model turns and tool results to the store, so re-invoking Run with the SAME runID against the SAME store reuses the recorded steps rather than re-running them. |
|
Command session shows a durable multi-turn conversation: each Session.Send is one full agent run seeded with the transcript so far, so the agent remembers earlier turns.
|
Command session shows a durable multi-turn conversation: each Session.Send is one full agent run seeded with the transcript so far, so the agent remembers earlier turns. |
|
Command signals shows the externally-pushed durable pauses: Await for a single-shot signal delivered from outside the run with agent.Signal, AwaitFor with a durable timeout (the signal-vs-deadline race), and an ordered per-run channel consumed exactly-once with Send / Receive / Ack.
|
Command signals shows the externally-pushed durable pauses: Await for a single-shot signal delivered from outside the run with agent.Signal, AwaitFor with a durable timeout (the signal-vs-deadline race), and an ordered per-run channel consumed exactly-once with Send / Receive / Ack. |
|
Command smoke runs the agent end-to-end against a live OpenAI-compatible endpoint (here, OpenRouter) to prove the loop + tool calling work against a real model.
|
Command smoke runs the agent end-to-end against a live OpenAI-compatible endpoint (here, OpenRouter) to prove the loop + tool calling work against a real model. |
|
Command streaming shows Agent.Stream: range the lifecycle Events to render progress (token deltas, turn boundaries, tool start/finish) while the durable loop runs underneath, then call Final for the terminal answer.
|
Command streaming shows Agent.Stream: range the lifecycle Events to render progress (token deltas, turn boundaries, tool start/finish) while the durable loop runs underneath, then call Final for the terminal answer. |
|
Command subagent shows a parent agent delegating to a SubAgent exposed as a tool.
|
Command subagent shows a parent agent delegating to a SubAgent exposed as a tool. |
|
Command typed shows RunTyped[T]: the agent does its work with real tools, then returns a strongly-typed Go struct instead of free-form text.
|
Command typed shows RunTyped[T]: the agent does its work with real tools, then returns a strongly-typed Go struct instead of free-form text. |
|
Command webhook shows how to drive an agent from an inbound messenger webhook (Slack, Telegram, Twilio, Meta, Discord) without shipping any messenger-specific code in the SDK.
|
Command webhook shows how to drive an agent from an inbound messenger webhook (Slack, Telegram, Twilio, Meta, Discord) without shipping any messenger-specific code in the SDK. |
Click to show internal directories.
Click to hide internal directories.