Build on the supported package contract
Use @absolutejs/agent-runtime through its supported public entry points.
@absolutejs/agent-runtimev0.2.6betaAIDurable provider-neutral AI agent runs, steps, checkpoints, budgets, leases, timers, effects, and handoffs.
bun add @absolutejs/agent-runtimeDurable, provider-neutral orchestration for AI agents. This package owns runs, steps, leases, budgets, checkpoints, timers, cancellation, effects, and handoffs. It does not choose a model, database driver, queue, or web framework.
Every run pins the exact signed discovery descriptor id, version, and digest that was selected. A remote agent therefore cannot silently replace its advertised capabilities during a workflow or handoff.
Workers claim due runs with FOR UPDATE SKIP LOCKED. Every append checks the lease, optimistic version, sequence, idempotency key, and budget inside one transaction. Effects are recorded as requested before execution and require a stable idempotency key; use @absolutejs/execution as the executor for crash-safe external effects and reconciliation.
PostgreSQL is the durable default. Apply agentRuntimePostgresSchemaSql() through your migrations. Redis is not a run store or work queue.
Memory stores are development and test defaults only.
Outcomes
Use @absolutejs/agent-runtime through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/agent-runtime
const runtime = createAgentRuntime({
store: createPostgresAgentRuntimeStore({ client: sql }),
driver: myModelAdapter,
effects: executionAdapter,
});
await runtime.start({
actor: { tenantId, userId, agentId, delegationId },
agent: selectedDiscoveryIdentity,
goal: "Rebook the delayed flight",
input,
budget: { actions: 8, costMicros: 50_000, spendMinor: 30_000 },
});Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.