examples

package module
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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 a Runtime, whose explicit MemoryStore 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 rag/citations takes a named source through ETL, indexes its stable chunks and queries two in-memory indexes with one encoding. The prepared model request excludes an oversized passage. Its surviving marker resolves to the original source revision without inventing a byte offset.

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-run-store.sh for append-log conformance, writer fencing, and crash recovery in an isolated Docker database. 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.
Command reconciliation investigates a Tool response lost after a remote operation.
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 obtains its system prompt and search tool from an MCP server.
Command mcpagent obtains its system prompt and search tool from an MCP server.
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.
rag
citations command
Command citations follows named source bytes through indexing and retrieval to the exact evidence selected for an answer.
Command citations follows named source bytes through indexing and retrieval to the exact evidence selected for an answer.

Jump to

Keyboard shortcuts

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