Skip to main content

Interface: IChatAssistantController

services.IChatAssistantController

Table of contents

Methods

Methods

dispose

dispose(): void

Disposes of the controller.

Returns

void

Defined in

src/services/chat.ts:110


init

init(context): void

Initializes the chat assistant controller with the provided context.

Parameters

NameTypeDescription
contextChatAssistantContextThe context for the chat assistant.

Returns

void

Defined in

src/services/chat.ts:90


onChatUpdated

onChatUpdated(chat): void

Called when the chat is updated.

Parameters

NameTypeDescription
chatChatInfoUpdated chat info.

Returns

void

Defined in

src/services/chat.ts:100


onSettingsUpdated

onSettingsUpdated(settings): void

Called when chat settings are updated.

Parameters

NameTypeDescription
settingsanyThe updated settings.

Returns

void

Defined in

src/services/chat.ts:95


validateSettings

validateSettings(settings): undefined | string

Validates the settings.

Parameters

NameTypeDescription
settingsanyThe settings to validate.

Returns

undefined | string

A string if there's an error, or undefined if valid.

Defined in

src/services/chat.ts:106