From 9e5f3e3630d08e0ec5af2aa7f375ba42a82ce198 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 6 Dec 2024 12:09:18 +0100 Subject: [PATCH] feat(taskprocessing) add new task types to the task processing API Signed-off-by: Julien Veyssier --- .../digging_deeper/task_processing.rst | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/developer_manual/digging_deeper/task_processing.rst b/developer_manual/digging_deeper/task_processing.rst index 3519d6f7b..d86172b86 100644 --- a/developer_manual/digging_deeper/task_processing.rst +++ b/developer_manual/digging_deeper/task_processing.rst @@ -38,6 +38,24 @@ The following built-in task types are available: * ``history``: ``ListOfTexts`` * Output shape: * ``output``: ``Text`` + * ``'core:text2text:chatwithtools'``: This task allows chatting with the language model with tools calling support. It is implemented by ``\OCP\TaskProcessing\TaskTypes\TextToTextChatWithTools`` + * Input shape: + * ``system_prompt``: ``Text`` + * ``input``: ``Text`` + * ``history``: ``ListOfTexts`` + * ``tools``: ``Text`` The tools parameter should be a JSON object 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`` + * ``'core:contextagent:interaction'``: This task allows chatting with an agent. It is implemented by ``\OCP\TaskProcessing\TaskTypes\ContextAgentInteraction`` + * Input shape: + * ``input``: ``Text`` + * ``confirmation``: ``Number`` Boolean integer indicating whether to confirm previously requested actions: 0 to reject or 1 to confirm. + * ``conversation_token``: ``Text`` Token representing the conversation + * Output shape: + * ``output``: ``Text`` + * ``conversation_token``: ``Text`` + * ``actions``: ``Text`` * ``'core:text2text:formalization'``: This task will reformulate the passed input text to be more formal in tone. It is implemented by ``\OCP\TaskProcessing\TaskTypes\TextToTextFormalization`` * Input shape: * ``input``: ``Text`` @@ -86,6 +104,12 @@ The following built-in task types are available: * ``numberOfImages``: ``Number`` * Output shape: * ``output``: ``ListOfImages`` + * ``'core:text2text:changetone'``: This task type is for reformulating a text, changing its tone. It is implemented by ``\OCP\TaskProcessing\TaskTypes\TextToTextChangeTone`` + * Input shape: + * ``input``: ``Text`` + * ``tone``: ``Enum`` + * Output shape: + * ``output``: ``Text`` LLM Prompts and multilingual I/O ################################