useNotebookAIAgent
Datalayer Core / useNotebookAIAgent
Function: useNotebookAIAgent()
useNotebookAIAgent(
notebookId
):undefined
|IAIAgent
Defined in: tech/datalayer/core/src/hooks/useNotebookAIAgent.tsx:16
Get the document AI Agent if any.
It handles checking the AI Agent is alive so it should only be use once per document.
Parameters
notebookId
string
Returns
undefined
| IAIAgent