examples

package module
v0.51.1 Latest Latest
Warning

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

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

Documentation

Overview

Package examples contains runnable demonstrations, with no supported API. Examples may import Scope modules; Scope modules must not import examples.

Command chat uses only Core for an ordinary structured call. Command agent/direct_vs_managed contrasts ordinary calls with an Interaction under an Engine, whose explicit MemoryTreeCommitter lasts only for that instance. Both are offline consumers; Agent is absent from chat's dependency closure.

Command agent/reconciliation restores an Interaction with an uncertain remote write and investigates its receipt through the public settlement APIs. It includes confirmed success, confirmed rejection, missing receipts, and query failure. With GOWORK=off, it consumes the published versions in this module's go.mod, without local replacements or a separate consumer manifest. Run MODULE=examples scripts/check.sh isolate from the repository root for module hygiene and every consumer's behavior against those dependencies. Command agent/context_reduction compares a deterministic duplicate-output policy with unchanged context using paired eval/trajectory task evidence. Its fixed quality and context-size gates include restoration without replay. The Go requirement lives in go.mod; the workspace selects its toolchain in go.work. For PostgreSQL transactions and independent-process crash recovery, run scripts/check-tree-committer.sh; its module overview describes the scope and isolated Docker environment. These examples do not replace that proof. Command mcp/expert is an independent native-SDK stdio peer. The mcp/mcpagent checks compose it with the existing process backend, authorization Guard, and managed Interaction to verify refusal, cancellation, lost results, and reconnect/restore without replay. They run offline against workspace and published dependencies, without introducing another execution lifecycle.

Directories

Path Synopsis
agent
context_reduction command
Command context_reduction compares one deterministic message reduction with the unchanged context on 64-round report-reading tasks.
Command context_reduction compares one deterministic message reduction with the unchanged context on 64-round report-reading tasks.
direct_vs_managed command
Command direct_vs_managed contrasts a direct model call with the same model capability managed as an agent Process.
Command direct_vs_managed contrasts a direct model call with the same model capability managed as an agent Process.
reconciliation command
Command reconciliation investigates a Tool response lost after a remote operation, restores the acknowledged tree in a replacement Engine, and either settles a confirmed result or stops with the Unknown intact.
Command reconciliation investigates a Tool response lost after a remote operation, restores the acknowledged tree in a replacement Engine, and either settles a confirmed result or stops with the Unknown intact.
Command chat demonstrates an ordinary structured model call using only Core.
Command chat demonstrates an ordinary structured model call using only Core.
Package fakeweather provides synthetic weather for offline demonstrations.
Package fakeweather provides synthetic weather for offline demonstrations.
mcp
expert command
Command expert serves an offline research corpus over MCP stdio using only the native MCP SDK.
Command expert serves an offline research corpus over MCP stdio using only the native MCP SDK.
mcpagent command
Command mcpagent runs an interaction agent whose system prompt and search tool come from an MCP server, forwarding request metadata with mcp.WithRequestMeta.
Command mcpagent runs an interaction agent whose system prompt and search tool come from an MCP server, forwarding request metadata with mcp.WithRequestMeta.
mcpbridge command
Command mcpbridge exposes a Scope tool through MCP using in-memory transports.
Command mcpbridge exposes a Scope tool through MCP using in-memory transports.

Jump to

Keyboard shortcuts

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