UNPKG

@adonis-agora/agent

Version:

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

16 lines • 877 B
import type { RunStepTiming, RunTimings } from './spi/agent-store.js'; /** One tool call's execution window: epoch-ms start and how long it ran. */ export interface ToolWindow { /** Epoch ms the call started. Absent → the call is counted as if it ran alone. */ at?: number; ms: number; } /** * Wall-clock time a set of tool calls took: the union of their windows, so calls that ran in * parallel count once and a gap between two sequential calls counts not at all. A call whose start * is unknown (journaled before starts were) adds its full duration. */ export declare function toolsWallClockMs(windows: readonly ToolWindow[]): number; /** A run's {@link RunTimings} from its steps: totals and counts, every figure a whole ms. */ export declare function rollupRunTimings(steps: readonly RunStepTiming[]): RunTimings; //# sourceMappingURL=run-timings.d.ts.map