export interface RunRecordCostBreakdown { totalUsd?: number; totalSpark?: number; totalRenderSeconds?: number; byTool?: Record; } export interface RunRecordToolCall { name: string; arguments: Record; id?: string; cost_class?: string; risk_level?: 'safe' | 'paid' | 'destructive'; } export interface RunRecordToolResult { ok: boolean; error_type?: string; payload: Record; } export interface RunRecordRound { round: number; assistant_message: string; tool_calls: RunRecordToolCall[]; tool_results: RunRecordToolResult[]; } export interface RunRecordAuditResult { stage: 'preflight' | 'postflight'; fatal_issues: ReadonlyArray<{ id: string; message: string; }>; minor_issues: ReadonlyArray<{ id: string; message: string; }>; recommended_action: 'accept' | 'refine' | 'regenerate' | 'ask_user'; toolName: string; } export interface RunRecord { schemaVersion: number; run_id: string; startedAt: number; endedAt: number; user_request: string; model_id: string; runtime_config: Record; tool_schemas: ReadonlyArray>; rounds: ReadonlyArray; final_response: string; audit_results: ReadonlyArray; job_ids: ReadonlyArray; asset_ids: ReadonlyArray; total_cost?: RunRecordCostBreakdown; redacted: boolean; } export declare const RUN_RECORD_SCHEMA_VERSION = 2; export declare function emptyRunRecord(): RunRecord; //# sourceMappingURL=types.d.ts.map