chat
Variable: chat
const chat: {
askQuestion: (question: string, buttons: string[], withFeedback: boolean) => Promise<string>;
checkForSteeringMessage: () => SteeringMessage | null;
getChatHistory: (threadId: string) => Promise<ChatMessage>;
onSteeringMessageReceived: () => Promise<SteeringMessage | null>;
processFinished: () => void;
processStarted: (onStopClicked?: (message: StopProcessMessage) => void) => ProcessControl | ProcessControlWithCleanup;
sendConfirmationRequest: (confirmationMessage: string, buttons: string[], withFeedback: boolean) => Promise<string>;
sendMessage: (message: string, payload?: object) => void;
sendNotificationEvent: (notificationMessage: string, type:
| "browser"
| "terminal"
| "git"
| "debug"
| "planner"
| "editor"
| "preview") => void;
setRequestHandler: (handler: RequestHandler) => void;
stopProcess: () => void;
waitforReply: (message: string) => Promise<UserMessage>;
};
Defined in: packages/codeboltjs/src/modules/chat.ts:40
Chat module to interact with the WebSocket server.