import type { PlannedAction, ActionResult } from "./tool-executor"; import type { DispatchResult } from "./scheduler"; import type { SpawnAgentRequest } from "./react-parser"; export { type PlannedAction, type ActionResult, }; export { type DispatchResult }; export { type SpawnAgentRequest }; export type AgentEvent = { type: "stepStart"; step: number; maxSteps: number; } | { type: "thinking"; step: number; delta: string; } | { type: "thought"; step: number; thought: string; } | { type: "plan"; step: number; plan: string; isMultiStep: boolean; } | { type: "planConfirmed"; step: number; confirmed: boolean; } | { type: "actionStart"; step: number; actions: PlannedAction[]; } | { type: "toolStart"; action: PlannedAction; } | { type: "toolEnd"; result: ActionResult; } | { type: "actionEnd"; step: number; results: ActionResult[]; } | { type: "delegateStart"; step: number; agents: string[]; } | { type: "delegateEnd"; step: number; results: DispatchResult[]; } | { type: "spawnAgent"; step: number; config: SpawnAgentRequest; success: boolean; message?: string; } | { type: "finalAnswer"; step: number; answer: string; } | { type: "stepEnd"; step: number; } | { type: "complete"; success: boolean; finalAnswer: string; duration: number; totalTokens: number; }; /** Plan 确认回调类型:返回 true 继续,false 取消当前计划。 */ export type ConfirmPlanFn = (plan: string, step: number) => Promise; /** 事件监听器类型。 */ export type AgentEventListener = (event: AgentEvent) => void; //# sourceMappingURL=agent-events.d.ts.map