Skip to content
Apkar

Product

Everything a run needs to be trusted.

Five capabilities that turn a prompt chain into infrastructure you can put on call.

01

Run Graph

Watch every step, branch, and retry as it happens, with the exact inputs and outputs on each node.

See how it works
const run = await agent("triage").start(ticket)
run.on("step", (s) => console.log(s.id, s.status))
02

Retry Policies

Per-tool exponential backoff, declared in one file instead of scattered through your handlers.

See how it works
retry: {
  "kb.search": { max: 3, backoff: "exponential" },
  "stripe.refund": { max: 1, requireApproval: true }
}
03

Audit Trail

Every prompt, tool call, and token — retained and replayable, exportable as compliance evidence.

See how it works
await runs.export({
  from: "2026-01-01",
  to: "2026-03-31",
  format: "jsonl"
})
04

Human in the Loop

Pause a run, review the state, approve or amend, and resume from the same step.

See how it works
.step("stripe.refund")
.approval({
  when: (ctx) => ctx.amount > 100_00,
  notify: "#billing-approvals"
})
05

Cost Guards

A hard ceiling per run. The agent stops at the limit instead of quietly overspending.

See how it works
budget: {
  perRun: { usd: 0.40 },
  alertAt: 0.8,
  onExceed: "stop"
}