import FpfClientV2 from "./apiV2"; import FpfFunction, { ExecutableFpfFunctionResponse } from "./function"; export interface Argument { name: string; type?: string; description: string; required?: boolean; } export interface FunctionResult { action_id: string; action_status: { value: string; }; feedback_message?: string; info?: Record; } export interface ChatResponse { message: string; isFinished: boolean; functionCall: FunctionCallResponse | null; } export interface FunctionCallResponse { fn_name: string; fn_args: any; result: FunctionResult; } export interface FpfChatResponse { message?: string; is_finished: boolean; function_call?: { id: string; fn_name: string; args: any; }; } export declare enum FunctionResultStatus { DONE = "done", FAILED = "failed" } export declare class Chat { chatId: string; client: FpfClientV2; private actionSpace; private getStateFn; constructor(chatId: string, client: FpfClientV2, actionSpace?: FpfFunction[], getStateFn?: () => Promise>); next(message: string): Promise; end(message?: string): void; updateConversation(message: string): Promise; reportFunctionResult(result: ExecutableFpfFunctionResponse, fnId: string): Promise; } export declare class ChatAgent { private _api_key; prompt: string; private client; constructor(api_key: string, prompt: string); createChat(data: { partnerId: string; partnerName: string; actionSpace?: FpfFunction[]; getStateFn?: () => Promise>; }): Promise; } //# sourceMappingURL=chatAgent.d.ts.map