import { type Attributes, type Tracer } from "./index"; export type AgentTelemetryRun = { id: string; parentRunId?: string; status: string; actor: { tenantId: string; userId: string; agentId: string; delegationId?: string; }; agent: { descriptorId: string; descriptorVersion: string; descriptorDigest: string; }; usage: { actions: number; costMicros: number; inputTokens: number; outputTokens: number; spendMinor: number; wallTimeMs: number; }; }; export type AgentTelemetryStep = { id: string; sequence: number; kind: string; name?: string; }; export type AgentTelemetryEvent = { type: "run.created"; run: AgentTelemetryRun; } | { type: "run.claimed"; run: AgentTelemetryRun; } | { type: "run.transitioned"; run: AgentTelemetryRun; } | { type: "step.appended"; run: AgentTelemetryRun; step: AgentTelemetryStep; }; export type AgentTelemetryOptions = { /** Actor user and agent identifiers are omitted by default to reduce PII. */ includeActorIds?: boolean; additionalAttributes?: (event: AgentTelemetryEvent) => Attributes; }; export declare const agentRunAttributes: (run: AgentTelemetryRun, options?: Pick) => Attributes; export declare const agentEventAttributes: (event: AgentTelemetryEvent, options?: AgentTelemetryOptions) => Attributes; /** * Creates an `onEvent` callback structurally compatible with * `@absolutejs/agent-runtime`. Goal, prompts, inputs, outputs, and effect * payloads are never recorded by this adapter. */ export declare const createAgentTelemetryObserver: (tracer: Tracer, options?: AgentTelemetryOptions) => (event: AgentTelemetryEvent) => Promise; //# sourceMappingURL=agent.d.ts.map