agent

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agent provides strong type identifiers for agents and tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	Returned       int
	Total          *int
	Truncated      bool
	NextCursor     *string
	RefinementHint string
}

Bounds describes how a tool result has been bounded relative to the full underlying data set. It is a small, provider-agnostic contract used by runtimes, sinks, and services to surface truncation metadata without re-inspecting tool-specific fields.

Returned reports how many items or points are present in the bounded view. Total, when non-nil, reports the best-effort total before truncation. Truncated indicates whether any caps were applied (length, window, depth). NextCursor, when non-nil, is an opaque cursor that can be used to fetch the next page of results when Truncated is true. RefinementHint provides short, human-readable guidance on how to narrow or refine the query when Truncated is true.

type Ident

type Ident string

Ident is the strong type for fully qualified agent identifiers (e.g., "service.agent"). Use this type when referencing agents in maps or APIs to avoid accidental mixing with free-form strings.

Directories

Path Synopsis
Package api defines shared types that cross workflow/activity boundaries in the agent runtime.
Package api defines shared types that cross workflow/activity boundaries in the agent runtime.
Package artifact defines runtime contracts for storing and loading run artifacts produced by tools.
Package artifact defines runtime contracts for storing and loading run artifacts produced by tools.
Package callrecord encodes model call evidence and rebuilds exact requests.
Package callrecord encodes model call evidence and rebuilds exact requests.
Package compaction makes replayable context decisions from recorded facts and immutable index metadata.
Package compaction makes replayable context decisions from recorded facts and immutable index metadata.
Package completion provides the typed runtime contract for service-owned direct assistant completions.
Package completion provides the typed runtime contract for service-owned direct assistant completions.
Package contextcompat verifies original attachment compatibility from durable transcript and model-call evidence.
Package contextcompat verifies original attachment compatibility from durable transcript and model-call evidence.
Package contextmeasure measures model requests without recording or rejecting them.
Package contextmeasure measures model requests without recording or rejecting them.
Package continuation builds bounded, immutable session carry and resolves its lineage.
Package continuation builds bounded, immutable session carry and resolves its lineage.
Package debug exposes an opt-in local HTTP debug server for agent runs.
Package debug exposes an opt-in local HTTP debug server for agent runs.
Package engine defines workflow engine abstractions for durable agent execution.
Package engine defines workflow engine abstractions for durable agent execution.
enginetest
Package enginetest provides reusable behavioral tests for workflow engines.
Package enginetest provides reusable behavioral tests for workflow engines.
errtypes
Package errtypes owns engine error values without activity or workflow dependencies.
Package errtypes owns engine error values without activity or workflow dependencies.
inmem
Package inmem provides an in-memory workflow engine implementation for tests and local development.
Package inmem provides an in-memory workflow engine implementation for tests and local development.
internal/activity
Package activity preserves the agent adapter's plain JSON payload contract.
Package activity preserves the agent adapter's plain JSON payload contract.
selvedge
Package selvedge implements the engine contract on a Selvedge App backed by SQLite or PostgreSQL.
Package selvedge implements the engine contract on a Selvedge App backed by SQLite or PostgreSQL.
temporal
Package temporal implements the loom-mcp workflow engine adapter backed by Temporal (https://temporal.io).
Package temporal implements the loom-mcp workflow engine adapter backed by Temporal (https://temporal.io).
Package hooks implements fan-out hooks for runtime observability and memory.
Package hooks implements fan-out hooks for runtime observability and memory.
internal
cancellation
Package cancellation classifies bounded error graphs without relying on the permissive traversal performed by errors.Is and errors.As.
Package cancellation classifies bounded error graphs without relying on the permissive traversal performed by errors.Is and errors.As.
Package interrupt provides workflow signal handling for pausing and resuming agent runs.
Package interrupt provides workflow signal handling for pausing and resuming agent runs.
Package memory persists event payloads as generic maps so stores can serialize them uniformly, but runtime and transcript code should interact with the typed payload structs in this file.
Package memory persists event payloads as generic maps so stores can serialize them uniformly, but runtime and transcript code should interact with the typed payload structs in this file.
inmem
Package inmem provides an in-memory implementation of memory.Store for testing and local development.
Package inmem provides an in-memory implementation of memory.Store for testing and local development.
Package model defines JSON helpers for marshaling and unmarshaling provider message parts.
Package model defines JSON helpers for marshaling and unmarshaling provider message parts.
Package overflow supplies the pure pre-send decision for one planner step.
Package overflow supplies the pure pre-send decision for one planner step.
Package planner defines planner contracts and helper implementations.
Package planner defines planner contracts and helper implementations.
Package policy codifies policy evaluation and enforcement for agent runs.
Package policy codifies policy evaluation and enforcement for agent runs.
Package prompt contains runtime prompt registry and override resolution logic.
Package prompt contains runtime prompt registry and override resolution logic.
Package rawjson provides a safe raw JSON byte type for workflow boundaries.
Package rawjson provides a safe raw JSON byte type for workflow boundaries.
Package reminder defines core types for run-scoped system reminders used to provide backstage guidance to planners (safety, correctness, workflow, and context hints).
Package reminder defines core types for run-scoped system reminders used to provide backstage guidance to planners (safety, correctness, workflow, and context hints).
Package run defines primitives for tracking agent run executions.
Package run defines primitives for tracking agent run executions.
Package runlog provides a durable, append-only event log for agent runs.
Package runlog provides a durable, append-only event log for agent runs.
inmem
Package inmem provides an in-memory implementation of runlog.Store.
Package inmem provides an in-memory implementation of runlog.Store.
Package runrecord reconstructs durable run evidence without workflow history.
Package runrecord reconstructs durable run evidence without workflow history.
Package runstore stores content and call records within a root run's scope.
Package runstore stores content and call records within a root run's scope.
inmem
Package inmem provides a process-local runstore.Store with no content size limit.
Package inmem provides a process-local runstore.Store with no content size limit.
runstoretest
Package runstoretest provides reusable behavioral tests for run stores.
Package runstoretest provides reusable behavioral tests for run stores.
Package runtime emits cooperative activity heartbeats for long-running planner and tool activities so engine-driven cancellation reaches streaming provider calls promptly instead of after the activity returns on its own.
Package runtime emits cooperative activity heartbeats for long-running planner and tool activities so engine-driven cancellation reaches streaming provider calls promptly instead of after the activity returns on its own.
hints
Package hints provides lightweight, template-based rendering helpers for tool call/result hints.
Package hints provides lightweight, template-based rendering helpers for tool call/result hints.
Package session defines durable session lifecycle and run metadata primitives.
Package session defines durable session lifecycle and run metadata primitives.
inmem
Package inmem provides an in-memory implementation of session.Store.
Package inmem provides an in-memory implementation of session.Store.
sessiontest
Package sessiontest provides executable continuation-store conformance checks.
Package sessiontest provides executable continuation-store conformance checks.
Package stream provides abstractions for delivering real-time agent execution updates to clients.
Package stream provides abstractions for delivering real-time agent execution updates to clients.
bridge
Package bridge provides a discoverable entrypoint to wire the runtime hook bus to a stream.Sink without importing the hooks subscriber directly.
Package bridge provides a discoverable entrypoint to wire the runtime hook bus to a stream.Sink without importing the hooks subscriber directly.
Package telemetry integrates runtime events with Clue tracing and metrics.
Package telemetry integrates runtime events with Clue tracing and metrics.
Package toolerrors provides structured error types for tool invocation failures.
Package toolerrors provides structured error types for tool invocation failures.
Package tools defines runtime-facing tool metadata and helpers.
Package tools defines runtime-facing tool metadata and helpers.
Package transcript provides a minimal, provider‑precise ledger that records the canonical conversation needed to rebuild provider payloads (e.g., Bedrock) without leaking provider SDK types into workflow state.
Package transcript provides a minimal, provider‑precise ledger that records the canonical conversation needed to rebuild provider payloads (e.g., Bedrock) without leaking provider SDK types into workflow state.
checkpoint
Package checkpoint provides pure context-checkpoint selection and rendering.
Package checkpoint provides pure context-checkpoint selection and rendering.
index
Package index defines immutable transcript entries and their model-facing projection.
Package index defines immutable transcript entries and their model-facing projection.
recall
Package recall defines input and paging contracts and an activity-side evidence handler.
Package recall defines input and paging contracts and an activity-side evidence handler.
summarize
Package summarize provides pure eligible-evidence rendering, deterministic summary chunk planning and ordered validation.
Package summarize provides pure eligible-evidence rendering, deterministic summary chunk planning and ordered validation.

Jump to

Keyboard shortcuts

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