import type { AgentTrace } from '../types'; /** * OpenClaw session trace adapter. * Converts OpenClaw session history (messages with tool calls) to AgentTrace. */ interface OpenClawMessage { role: 'system' | 'user' | 'assistant' | 'tool'; content?: string; tool_calls?: Array<{ id: string; type: 'function'; function: { name: string; arguments: string; }; }>; tool_call_id?: string; name?: string; timestamp?: string; duration_ms?: number; tokens?: { input?: number; output?: number; }; model?: string; } interface OpenClawSession { id?: string; session_id?: string; messages?: OpenClawMessage[]; history?: OpenClawMessage[]; metadata?: Record; created_at?: string; timestamp?: string; } /** * Detect if input is an OpenClaw session trace. */ export declare function detectOpenClaw(input: any): boolean; /** * Convert OpenClaw session trace to AgentTrace. */ export declare function convertOpenClaw(input: OpenClawSession): AgentTrace; export {}; //# sourceMappingURL=openclaw.d.ts.map