import { AgentWorker, TaskHandler, AgentRunner, AgentParamsBase } from '@llamaindex/core/agent'; export * from '@llamaindex/core/agent'; import { JSONValue, JSONObject } from '@llamaindex/core/global'; import { LLM, ChatResponse } from '@llamaindex/core/llms'; type ReACTAgentParams = AgentParamsBase; type BaseReason = { type: unknown; }; type ObservationReason = BaseReason & { type: "observation"; observation: JSONValue; }; type ActionReason = BaseReason & { type: "action"; thought: string; action: string; input: JSONObject; }; type ResponseReason = BaseReason & { type: "response"; thought: string; response: ChatResponse; }; type Reason = ObservationReason | ActionReason | ResponseReason; type ReACTAgentStore = { reasons: Reason[]; }; declare class ReACTAgentWorker extends AgentWorker { taskHandler: TaskHandler, ReACTAgentStore>; } declare class ReActAgent extends AgentRunner { constructor(params: ReACTAgentParams); createStore(): { reasons: never[]; }; static taskHandler: TaskHandler; } export { ReACTAgentWorker, ReActAgent }; export type { ReACTAgentParams };