Skip to content

Commit

Permalink
fix: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Veyssier <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr and julien-nc authored Jan 17, 2025
1 parent 1ec9b00 commit 2549ee4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions admin_manual/ai/app_context_agent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ App: Context Agent (context_agent)

.. _ai-app-context_agent:

The *context_agent* app is the apps that provide AI agent functionality in Nextcloud and acts as a backend for the :ref:`Nextcloud Assistant app<ai-app-assistant>`. Nextcloud can provide customer support upon request, please talk to your account manager for the possibilities.
The *context_agent* app is the app that provides AI agent functionality in Nextcloud and acts as a backend for the :ref:`Nextcloud Assistant app<ai-app-assistant>`. Nextcloud can provide customer support upon request, please talk to your account manager for the possibilities.

Requirements
------------

* This app is built as an External App and thus depends on AppAPI v3.1.0 or higher
* Nextcloud AIO is supported
* No GPU is necessary
* No GPU is necessary for Context Agent but one might be useful if you use it with a self-hosted provider like llm2

* CPU Sizing

Expand Down
6 changes: 3 additions & 3 deletions admin_manual/ai/app_text2image_stablediffusion2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Requirements
Installation
------------

0. Make sure the :ref:`Nextcloud Assistant app<ai-app-assistant>` is installed
1. :ref:`Install AppAPI and setup a Deploy Demon<ai-app_api>`
2. Install the "Local large language model" ExApp via the "Apps" page in the Nextcloud web admin user interface
* Make sure the :ref:`Nextcloud Assistant app<ai-app-assistant>` is installed
* :ref:`Install AppAPI and setup a Deploy Demon<ai-app_api>`
* Install the "Local large language model" ExApp via the "Apps" page in the Nextcloud web admin user interface


Scaling
Expand Down
6 changes: 3 additions & 3 deletions developer_manual/digging_deeper/task_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ The following built-in task types are available:
* Input shape:
* ``system_prompt``: ``Text``
* ``input``: ``Text``
* ``tool_message`` A JSON array of ``{"name": string, "content": string, "tool_call_id": string}``
* ``history``: ``ListOfTexts`` Each list item is a JSON string with ``{"role": "human", "content": string}`` or ``{"role": "assistant"|, "content": string, (optional: "tool_calls": array<{"name": string, "type": "tool_call", "id": string, "args": object}>)}`` or ``{"role": "tool", "content": string, "name": string, "tool_call_id": string}``
* ``tool_message``: ``Text`` A string containing a JSON array of ``{"name": string, "content": string, "tool_call_id": string}``
* ``history``: ``ListOfTexts`` Each list item is a JSON string with ``{"role": "human", "content": string}`` or ``{"role": "assistant", "content": string, (optional: "tool_calls": array<{"name": string, "type": "tool_call", "id": string, "args": object}>)}`` or ``{"role": "tool", "content": string, "name": string, "tool_call_id": string}``
* ``tools``: ``Text`` The tools parameter should be a JSON array formatted according to the OpenAI API specifications: https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools
* Output shape:
* ``output``: ``Text``
* ``tool_calls``: ``Text`` A JSON array with ``{"name": string, "type": "tool_call", "id": string, "args": object}``
* ``tool_calls``: ``Text`` A string containing a JSON array with ``{"name": string, "type": "tool_call", "id": string, "args": object}``
* ``'core:contextagent:interaction'``: This task allows chatting with an agent. It is implemented by ``\OCP\TaskProcessing\TaskTypes\ContextAgentInteraction``
* Input shape:
* ``input``: ``Text``
Expand Down

0 comments on commit 2549ee4

Please sign in to comment.