Skip to content

Adapter catalog

Agent manifests describe agent behavior. The host application selects the infrastructure used to execute them by installing and configuring adapters. Changing an adapter does not require a different agent manifest.

Adapter contracts

CapabilityContract or extension pointPurpose
ModelsModelAdaptermodel generation and streaming
ToolsToolAdaptertool discovery and execution
PersistenceRunStore, ArtifactStorerun state, checkpoints, and artifact storage
ConditionsConditionEvaluatorconditions and loop goals
ExecutionExecutionEnginerun lifecycle and event delivery
Remote computeRemoteComputeLaunchersubmit and cancel remote compute
SandboxesSandboxProviderisolated processes and filesystems
TelemetryEventSinklifecycle and model events

Included adapters

CapabilityPackageImplementation
Models@clearideas/agent-runtime-model-ai-sdkAI SDK providers and compatible APIs
Conditions@clearideas/agent-runtime-condition-jexlJEXL
Persistence@clearideas/agent-runtime-store-localmemory, files, JSONL, and console
Persistence@clearideas/agent-runtime-store-sqliteSQLite
Remote compute@clearideas/agent-runtime-execution-modalModal functions and execution queues
Sandboxes@clearideas/agent-runtime-sandboxDocker
Sandboxes@clearideas/agent-runtime-sandbox-modalModal sandboxes
Telemetry@clearideas/agent-runtime-telemetry-otelOpenTelemetry

The core packages also provide in-process and child-process execution, the worker protocol, and the interfaces used by remote adapters.

Configure an adapter

Install the packages required by the host and pass their implementations when composing the runtime:

ts
const runtime = new AgentRuntime({
  runStore,
  model,
  tools,
  conditionEvaluator,
  sandbox,
  artifacts,
  eventSinks,
  stepExecutors,
});

Remote execution is configured outside the agent manifest:

ts
const client = new ExecutionClient(executionEngine);
const handle = await client.submit(executionRequest);

See Embed Agent Runtime for runtime composition, Remote execution for execution engines, and Sandboxes and artifacts for sandbox providers.

Add an adapter

Implement the contract for the capability and supply it through the host configuration. Provider SDK types, credentials, retry behavior, and service handles remain inside the adapter. Agent manifests reference models, connections, and steps without depending on the infrastructure package.

Adapter implementations must enforce authorization, resource limits, destination policy, cancellation, and secret handling for their service.

Adapter guides