updateChatState()
Home > @gooddata/sdk-pluggable-application-model > IHostUiMountHandle > updateChatState
IHostUiMountHandle.updateChatState() method
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Pushes the host-owned AI assistant chat state into the host UI.
Signature:
updateChatState?(state: {
showChatItem: boolean;
isOpen: boolean;
}): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
state |
{ showChatItem: boolean; isOpen: boolean; } |
Returns:
void
Remarks
The chat itself is owned by the host runtime; this lets the UI module reflect it — show/hide the header chat button (showChatItem, gated by feature flag, permissions and a runtime LLM availability probe) and reflect its open-state for active styling. Called after mount and on every change.