Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
Package a2a maps an envelope.Message onto an A2A v1.0 message part and back, and carries the A2A v1.0 client over that mapping.
|
Package a2a maps an envelope.Message onto an A2A v1.0 message part and back, and carries the A2A v1.0 client over that mapping. |
|
Package agentloop runs a model until it stops asking for tools.
|
Package agentloop runs a model until it stops asking for tools. |
|
Package channel gives every part of this SDK that must ask a question and wait for a typed answer one shared shape to build a closure from: Question, Answer, and Notifier.
|
Package channel gives every part of this SDK that must ask a question and wait for a typed answer one shared shape to build a closure from: Question, Answer, and Notifier. |
|
context
|
|
|
budget
Package budget states and checks a budget for one model call's context.
|
Package budget states and checks a budget for one model call's context. |
|
plan
Package plan manages token budget windows and compaction.
|
Package plan manages token budget windows and compaction. |
|
ref
Package ref provides the canonical content-reference minter and parser.
|
Package ref provides the canonical content-reference minter and parser. |
|
Package contextsession plans durable session history into a bounded provider request with retention rules and overflow spooling.
|
Package contextsession plans durable session history into a bounded provider request with retention rules and overflow spooling. |
|
Package contextstate holds the durable context contract.
|
Package contextstate holds the durable context contract. |
|
Package dispatch receives newline-delimited envelope JSON over HTTP, runs the full receive ladder per line, and answers with newline-delimited ack JSON.
|
Package dispatch receives newline-delimited envelope JSON over HTTP, runs the full receive ladder per line, and answers with newline-delimited ack JSON. |
|
docs
|
|
|
examples/_agentloop
command
Command agentloop wires a complete agentloop.Options and runs one scripted two-turn tool exchange offline.
|
Command agentloop wires a complete agentloop.Options and runs one scripted two-turn tool exchange offline. |
|
examples/_agentloop_adoption
command
Command agentloop_adoption is the external-adopter positive control: it sets every agentloop Options row an external consumer is expected to adopt, one commented line per row of the adoption table (Usage, Budget, MaxTotalTokens, MaxConsecutiveToolFailures, Tracer, DedupWithinTurn, Audit, Conclude, HeartbeatInterval + Bus, and the Window/Summarizer/Calibrated compaction triple).
|
Command agentloop_adoption is the external-adopter positive control: it sets every agentloop Options row an external consumer is expected to adopt, one commented line per row of the adoption table (Usage, Budget, MaxTotalTokens, MaxConsecutiveToolFailures, Tracer, DedupWithinTurn, Audit, Conclude, HeartbeatInterval + Bus, and the Window/Summarizer/Calibrated compaction triple). |
|
examples/_agentloop_minimal
command
Command agentloop_minimal shows the smallest useful agentloop entry: one completer, one tool, DefaultBounds, and EnableCompaction build the whole Options.
|
Command agentloop_minimal shows the smallest useful agentloop entry: one completer, one tool, DefaultBounds, and EnableCompaction build the whole Options. |
|
examples/_quickstart
command
Command quickstart is the README Quick Start program: one schema tool, one agentloop.Run call.
|
Command quickstart is the README Quick Start program: one schema tool, one agentloop.Run call. |
|
examples/_sdksurface
command
Command sdksurface exercises the exported SDK symbols that carry no in-repo caller: the surface a public SDK ships for external application code.
|
Command sdksurface exercises the exported SDK symbols that carry no in-repo caller: the surface a public SDK ships for external application code. |
|
examples/_workflowcomposition
command
|
|
|
examples/_workflowrun
command
Command workflowrun walks a two-step pipeline through the workflow/run composition layer.
|
Command workflowrun walks a two-step pipeline through the workflow/run composition layer. |
|
Package envelope implements the AI message envelope: a natural-language payload inside machine-checkable metadata.
|
Package envelope implements the AI message envelope: a natural-language payload inside machine-checkable metadata. |
|
Package envfile loads a dotenv file into a map.
|
Package envfile loads a dotenv file into a map. |
|
Package events implements a caller-owned reaction bus: typed events, one subscription set, and in-process dispatch.
|
Package events implements a caller-owned reaction bus: typed events, one subscription set, and in-process dispatch. |
|
Package flow implements the declarative workflow block: a step graph with dependencies and panels.
|
Package flow implements the declarative workflow block: a step graph with dependencies and panels. |
|
internal
|
|
|
e2e
Package e2e proves the composed SDK works end to end.
|
Package e2e proves the composed SDK works end to end. |
|
Package ledger implements the durable-task-admission block: idempotency-keyed admission, lease-based ownership with fencing, and dependency-driven blocking on failure.
|
Package ledger implements the durable-task-admission block: idempotency-keyed admission, lease-based ownership with fencing, and dependency-driven blocking on failure. |
|
ledgertest
Package ledgertest is the durablefence conformance-test kit, built on testing.TB.
|
Package ledgertest is the durablefence conformance-test kit, built on testing.TB. |
|
Package longtermmemory holds durable-feeling learnings an agent wants across turns: entries in core and archive tiers, a small never-evicted core per scope, automatic consolidation near capacity, keyword search, and a bounded core-context frame a caller renders into its own system prompt.
|
Package longtermmemory holds durable-feeling learnings an agent wants across turns: entries in core and archive tiers, a small never-evicted core per scope, automatic consolidation near capacity, keyword search, and a bounded core-context frame a caller renders into its own system prompt. |
|
Package machine implements the state-machine block: typed statuses, triggers, guards, actions, and the transition table.
|
Package machine implements the state-machine block: typed statuses, triggers, guards, actions, and the transition table. |
|
Package mcp wraps the official Model Context Protocol Go SDK's client (github.com/modelcontextprotocol/go-sdk/mcp) and maps a remote MCP server's tools onto this module's tools.Tool and tools.Registry.
|
Package mcp wraps the official Model Context Protocol Go SDK's client (github.com/modelcontextprotocol/go-sdk/mcp) and maps a remote MCP server's tools onto this module's tools.Tool and tools.Registry. |
|
Package memory stores and fetches context blobs by content address.
|
Package memory stores and fetches context blobs by content address. |
|
Package provider defines the Completer contract a caller uses to complete a chat turn against a language model, plus the request and response shapes the contract carries.
|
Package provider defines the Completer contract a caller uses to complete a chat turn against a language model, plus the request and response shapes the contract carries. |
|
anthropic
Package anthropic implements a provider.Completer adapter for the Anthropic Messages API.
|
Package anthropic implements a provider.Completer adapter for the Anthropic Messages API. |
|
Package room manages standing groups for envelope messages: a roster with roles, moderator-gated admission, and a gate that admits an envelope.Message only when its signer is a member.
|
Package room manages standing groups for envelope messages: a roster with roles, moderator-gated admission, and a gate that admits an envelope.Message only when its signer is a member. |
|
Package runconfig loads a JSON document into a validated workflow/run runner and its tool set.
|
Package runconfig loads a JSON document into a validated workflow/run runner and its tool set. |
|
Package scheduler invokes a caller-supplied Job on a schedule.
|
Package scheduler invokes a caller-supplied Job on a schedule. |
|
Package schema compiles a JSON Schema document, validates JSON payloads against it, and builds a bounded, model-facing corrective message on a validation failure.
|
Package schema compiles a JSON Schema document, validates JSON payloads against it, and builds a bounded, model-facing corrective message on a validation failure. |
|
Command api_surface prints the exported API surface of every package directory in this module, at any depth.
|
Command api_surface prints the exported API surface of every package directory in this module, at any depth. |
|
Package skills holds a reusable instruction bundle a caller registers under a name and finds again by trigger phrase or by name.
|
Package skills holds a reusable instruction bundle a caller registers under a name and finds again by trigger phrase or by name. |
|
Package subagent exposes built SDK blocks as tools in three groups.
|
Package subagent exposes built SDK blocks as tools in three groups. |
|
Package tools defines a named-action interface and a registry that resolves a name to a Tool and runs it.
|
Package tools defines a named-action interface and a registry that resolves a name to a Tool and runs it. |
|
Package trace gives a caller a structured trace of a multi-step run: Span records one named operation, Tracer issues spans and links them through ctx.
|
Package trace gives a caller a structured trace of a multi-step run: Span records one named operation, Tracer issues spans and links them through ctx. |
|
Package workflow defines one agent declaratively: an identity, a capability card, and a step plan, bound into one value.
|
Package workflow defines one agent declaratively: an identity, a capability card, and a step plan, bound into one value. |
|
run
Package run wires an agent, a machine, and optional blocks into a runnable pipeline.
|
Package run wires an agent, a machine, and optional blocks into a runnable pipeline. |
|
Package workspace confines all filesystem access to one root directory, so a tool or agent that reads and writes files cannot escape its sandbox through path traversal or a symlink.
|
Package workspace confines all filesystem access to one root directory, so a tool or agent that reads and writes files cannot escape its sandbox through path traversal or a symlink. |
Click to show internal directories.
Click to hide internal directories.