Skip to main content

askQuestion

codebolt.chat.askQuestion(question: string): Promise<string>
Asks a question to the user and waits for a response.

Parameters

NameTypeDescription
questionstringThe question text to present to the user.

Returns:

 Promise<string>
A promise that resolves with the user's response.

Example:

const userResponse = await codebolt.chat.askQuestion(question: string)