From 3aeb7ed4d18f3b5e1a7bbfa534fdd5f38d5f2d21 Mon Sep 17 00:00:00 2001 From: Edward Ly Date: Fri, 11 Jul 2025 10:01:57 -0700 Subject: [PATCH] fix(developer): mention that context_chat should be enabled before submitting content Signed-off-by: Edward Ly --- developer_manual/digging_deeper/context_chat.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/developer_manual/digging_deeper/context_chat.rst b/developer_manual/digging_deeper/context_chat.rst index 80cefa7f3..e2574a208 100644 --- a/developer_manual/digging_deeper/context_chat.rst +++ b/developer_manual/digging_deeper/context_chat.rst @@ -116,7 +116,10 @@ if you want to trigger an initial import of content items. Submitting ContentItem data ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -To submit content, wrap it in an ``\OCP\ContextChat\ContentItem`` object: +Before submitting, you should check that the Context Chat app is enabled first +by calling the ``isContextChatAvailable()`` method. + +Then, to submit content, wrap it in a list of ``\OCP\ContextChat\ContentItem`` objects: .. code-block:: php