export type AgentStatus = "running" | "completed" | "errored";

export interface AgentInfo {
  toolUseId: string;
  agentId?: string;
  description: string;
  subagentType: string;
  startedAt: number;
  endedAt?: number;
  status: AgentStatus;
  parentToolUseId?: string;
  durationMs?: number;
}

export interface AgentStartPayload {
  tool_use_id: string;
  agent_id?: string;
  description: string;
  subagent_type: string;
  started_at: number;
  conversation_id?: string;
  parent_tool_use_id?: string;
}

export interface AgentEndPayload {
  tool_use_id: string;
  ended_at: number;
  is_error: boolean;
  conversation_id?: string;
  duration_ms?: number;
  num_turns?: number;
}
