UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

9 lines • 619 B
import type { AgentStore, RecordUsageInput } from './spi/agent-store.js'; /** * Write one usage-ledger row and publish it as `agora:agent:usage.recorded` — the single path every * AI cost takes (the loop's model calls and `AgentService.recordUsage`), so a subscriber sees all of * it through one event. The loop calls this INSIDE a step body: a durable replay skips the body, so a * row is neither written nor published twice. Published only once the write succeeded. */ export declare function recordUsageRow(store: AgentStore, input: RecordUsageInput): Promise<void>; //# sourceMappingURL=usage-ledger.d.ts.map