Sign In

@absolutejs/agent-runtime

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@absolutejs/agent-runtime

Durable provider-neutral AI agent runs, steps, checkpoints, budgets, leases, timers, effects, and handoffs.

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
322
-36.74%
Maintainers
1
Weekly downloads
 
Created
Source

@absolutejs/agent-runtime

Durable, 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.

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 },
});

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.

FAQs

Package last updated on 20 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts