setAiAssistantOpen
Home > @gooddata/sdk-pluggable-application-model > IPluggableApplicationMountHandle > setAiAssistantOpen
IPluggableApplicationMountHandle.setAiAssistantOpen property
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 open-state into the pluggable application.
Signature:
setAiAssistantOpen?: (open: boolean) => void;
Remarks
On hosted routes the host owns the single chat instance; an application that exposes its own assistant controls (e.g. an embedded AI button, or the toggleAIAssistant postMessage command whose result is echoed to an embedding client) needs to know the real open-state to keep those controls and their reported results aligned with what the user sees. The host calls this whenever its chat opens or closes. Applications without such controls may omit it.