Directories
¶
| Path | Synopsis |
|---|---|
|
Package acp models the Agent Client Protocol (ACP) v1 wire types and the pure projection functions between them and this SDK's typed event.Event / event.Op contract.
|
Package acp models the Agent Client Protocol (ACP) v1 wire types and the pure projection functions between them and this SDK's typed event.Event / event.Op contract. |
|
Package auth persists provider credentials and drives the OAuth login flows for subscription auth (Anthropic Claude Pro/Max, OpenAI ChatGPT).
|
Package auth persists provider credentials and drives the OAuth login flows for subscription auth (Anthropic Claude Pro/Max, OpenAI ChatGPT). |
|
Package compose turns a declarative agent manifest into a wired session or a wired agent loop.
|
Package compose turns a declarative agent manifest into a wired session or a wired agent loop. |
|
Package event defines the typed Event/Op contract that sits above the agent loop, plus the two-tier broker that delivers events to subscribers.
|
Package event defines the typed Event/Op contract that sits above the agent loop, plus the two-tier broker that delivers events to subscribers. |
|
Package exec is the SDK's headless one-shot adapter: it drives a drivable session to completion with a single prompt and emits the typed event stream as JSONL on an io.Writer (os.Stdout by default) — the SDK half of an application's `exec` verb.
|
Package exec is the SDK's headless one-shot adapter: it drives a drivable session to completion with a single prompt and emits the typed event stream as JSONL on an io.Writer (os.Stdout by default) — the SDK half of an application's `exec` verb. |
|
internal
|
|
|
goldenio
Package goldenio is a test helper for golden-file event-stream assertions.
|
Package goldenio is a test helper for golden-file event-stream assertions. |
|
Package loop owns the agent loop: it drives a provider through one or more model calls, converts the provider's normalized stream into the typed event contract, executes tool calls between calls, and stops at an end-of-turn stop reason or an iteration cap.
|
Package loop owns the agent loop: it drives a provider through one or more model calls, converts the provider's normalized stream into the typed event contract, executes tool calls between calls, and stops at an end-of-turn stop reason or an iteration cap. |
|
Package lsp is the SDK's Language Server Protocol seam: a curated server registry and a stdlib-only JSON-RPC-over-stdio client, wired to a neutral diagnostics-publishing interface the consuming application maps onto its own event stream.
|
Package lsp is the SDK's Language Server Protocol seam: a curated server registry and a stdlib-only JSON-RPC-over-stdio client, wired to a neutral diagnostics-publishing interface the consuming application maps onto its own event stream. |
|
Package permission is the SDK's format-agnostic permission rule engine: a typed []Rule + evaluator the guard consults for the deny/allow-before-sandbox step.
|
Package permission is the SDK's format-agnostic permission rule engine: a typed []Rule + evaluator the guard consults for the deny/allow-before-sandbox step. |
|
Package provider defines the LLM provider interface and the normalized event stream the agent loop consumes.
|
Package provider defines the LLM provider interface and the normalized event stream the agent loop consumes. |
|
anthropic
Package anthropic implements the provider.Provider interface against the Anthropic Messages API.
|
Package anthropic implements the provider.Provider interface against the Anthropic Messages API. |
|
faux
Package faux provides a deterministic, scripted provider.Provider for tests and demos.
|
Package faux provides a deterministic, scripted provider.Provider for tests and demos. |
|
openai
Package openai implements a provider.Provider for OpenAI models over the Responses API (POST /responses with stream:true), not the older Chat Completions API.
|
Package openai implements a provider.Provider for OpenAI models over the Responses API (POST /responses with stream:true), not the older Chat Completions API. |
|
Package providers is the factory apps use to construct a provider.Provider from a model id, so embedders stop importing the vendor adapter packages directly.
|
Package providers is the factory apps use to construct a provider.Provider from a model id, so embedders stop importing the vendor adapter packages directly. |
|
Package runner is the SDK's composable session runner: it builds a provider and tool registry, drives the SDK's agent loop, and streams the loop's typed events into a durable session journal as each model-call turn settles.
|
Package runner is the SDK's composable session runner: it builds a provider and tool registry, drives the SDK's agent loop, and streams the loop's typed events into a durable session journal as each model-call turn settles. |
|
Package session provides session identity and single-turn execution.
|
Package session provides session identity and single-turn execution. |
|
Package spill streams a tool call's raw output to a durable, append-only per-call file while retaining only a bounded head+tail excerpt (plus a running sha256 and byte count) in memory.
|
Package spill streams a tool call's raw output to a durable, append-only per-call file while retaining only a bounded head+tail excerpt (plus a running sha256 and byte count) in memory. |
|
Package tool provides the Tool interface, a Registry, and a set of importable builtin coding tools (bash, read, edit, write, grep, glob, ls).
|
Package tool provides the Tool interface, a Registry, and a set of importable builtin coding tools (bash, read, edit, write, grep, glob, ls). |
Click to show internal directories.
Click to hide internal directories.