export type AiAgentSseEvent =
  | { event: "assistant_message"; data: { text: string } }
  | { event: "tool_call"; data: { id: string; tool: string; args: Record<string, unknown> } }
  | { event: "tool_result"; data: { id: string; tool: string; ok: boolean; ms: number; result: unknown } }
  | { event: "completion"; data: { ok: true; text: string; steps: number } }
  | { event: "error"; data: { ok: false; message: string } };

