runtime/

directory
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT

Directories

Path Synopsis
Package agent provides strong type identifiers for agents and tools.
Package agent provides strong type identifiers for agents and tools.
api
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.
engine
Package engine defines workflow engine abstractions for durable agent execution.
Package engine defines workflow engine abstractions for durable agent execution.
engine/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.
engine/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).
hooks
Package hooks implements fan-out hooks for runtime observability and memory.
Package hooks implements fan-out hooks for runtime observability and memory.
interrupt
Package interrupt provides workflow signal handling for pausing and resuming agent runs.
Package interrupt provides workflow signal handling for pausing and resuming agent runs.
memory
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.
memory/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.
model
Package model defines JSON helpers for marshaling and unmarshaling provider message parts.
Package model defines JSON helpers for marshaling and unmarshaling provider message parts.
planner
Package planner defines planner contracts and helper implementations.
Package planner defines planner contracts and helper implementations.
policy
Package policy codifies policy evaluation and enforcement for agent runs.
Package policy codifies policy evaluation and enforcement for agent runs.
prompt
Package prompt contains runtime prompt registry and override resolution logic.
Package prompt contains runtime prompt registry and override resolution logic.
rawjson
Package rawjson provides a safe raw JSON byte type for workflow boundaries.
Package rawjson provides a safe raw JSON byte type for workflow boundaries.
reminder
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).
run
Package run defines primitives for tracking agent run executions.
Package run defines primitives for tracking agent run executions.
runlog
Package runlog provides a durable, append-only event log for agent runs.
Package runlog provides a durable, append-only event log for agent runs.
runlog/inmem
Package inmem provides an in-memory implementation of runlog.Store.
Package inmem provides an in-memory implementation of runlog.Store.
runtime
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.
runtime/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.
session
Package session defines durable session lifecycle and run metadata primitives.
Package session defines durable session lifecycle and run metadata primitives.
session/inmem
Package inmem provides an in-memory implementation of session.Store.
Package inmem provides an in-memory implementation of session.Store.
stream
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.
stream/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.
telemetry
Package telemetry integrates runtime events with Clue tracing and metrics.
Package telemetry integrates runtime events with Clue tracing and metrics.
toolerrors
Package toolerrors provides structured error types for tool invocation failures.
Package toolerrors provides structured error types for tool invocation failures.
tools
Package tools defines runtime-facing tool metadata and helpers.
Package tools defines runtime-facing tool metadata and helpers.
transcript
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.
mcp
Package mcp provides runtime MCP transport callers, normalization helpers, and support utilities used by generated MCP adapters.
Package mcp provides runtime MCP transport callers, normalization helpers, and support utilities used by generated MCP adapters.
retry
Package retry defines shared types and helpers for producing standardized retryable errors and compact repair prompts used across generated clients.
Package retry defines shared types and helpers for producing standardized retryable errors and compact repair prompts used across generated clients.
Package registry provides client-side components for agents to consume the internal tool registry.
Package registry provides client-side components for agents to consume the internal tool registry.
Package temporaltrace defines the OpenTelemetry tracing contract for Temporal activity execution in loom-mcp powered runtimes.
Package temporaltrace defines the OpenTelemetry tracing contract for Temporal activity execution in loom-mcp powered runtimes.
Package toolregistry defines the canonical wire protocol and stream naming helpers used by the tool registry gateway and tool providers/consumers.
Package toolregistry defines the canonical wire protocol and stream naming helpers used by the tool registry gateway and tool providers/consumers.
executor
Package executor provides registry-backed tool execution.
Package executor provides registry-backed tool execution.
provider
Package provider implements the provider-side Pulse subscription loop for registry-routed tool execution.
Package provider implements the provider-side Pulse subscription loop for registry-routed tool execution.

Jump to

Keyboard shortcuts

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