Interface: IChatAssistantController
services.IChatAssistantController
Table of contents
Methods
Methods
dispose
▸ dispose(): void
Disposes of the controller.
Returns
void
Defined in
init
▸ init(context
): void
Initializes the chat assistant controller with the provided context.
Parameters
Name | Type | Description |
---|---|---|
context | ChatAssistantContext | The context for the chat assistant. |
Returns
void
Defined in
onChatUpdated
▸ onChatUpdated(chat
): void
Called when the chat is updated.
Parameters
Name | Type | Description |
---|---|---|
chat | ChatInfo | Updated chat info. |
Returns
void
Defined in
onSettingsUpdated
▸ onSettingsUpdated(settings
): void
Called when chat settings are updated.
Parameters
Name | Type | Description |
---|---|---|
settings | any | The updated settings. |
Returns
void
Defined in
validateSettings
▸ validateSettings(settings
): undefined
| string
Validates the settings.
Parameters
Name | Type | Description |
---|---|---|
settings | any | The settings to validate. |
Returns
undefined
| string
A string if there's an error, or undefined if valid.