fix(developer): mention that context_chat should be enabled before submitting content

Signed-off-by: Edward Ly <contact@edward.ly>
This commit is contained in:
Edward Ly
2025-07-11 10:01:57 -07:00
parent 2af040cd7f
commit 3aeb7ed4d1

View File

@ -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