isOpenAiAssistantRequestedEvent()
Home > @gooddata/sdk-pluggable-application-model > isOpenAiAssistantRequestedEvent
isOpenAiAssistantRequestedEvent() function
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.
Type guard for IOpenAiAssistantRequestedEvent.
Signature:
export declare function isOpenAiAssistantRequestedEvent(obj: unknown): obj is IOpenAiAssistantRequestedEvent;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
obj |
unknown |
Returns:
obj is IOpenAiAssistantRequestedEvent
Remarks
Validates the payload shape too (not just the type), so a malformed event — e.g. one emitted from JS or a mismatched remote module — is rejected rather than narrowed to a type whose later payload.question access would throw.