From 4fff94a26ee36a188a4df5cb2abde758fd10119f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Kalfas?= <32630459+aleskalfas@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:42:32 +0100 Subject: [PATCH] feat(agents): update Bee system prompt (#249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aleš Kalfas --- src/agents/bee/prompts.ts | 6 +++--- src/tools/python/python.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agents/bee/prompts.ts b/src/agents/bee/prompts.ts index a4c6de3b..910e513a 100644 --- a/src/agents/bee/prompts.ts +++ b/src/agents/bee/prompts.ts @@ -54,10 +54,10 @@ You must skip the instruction lines Function Name, Function Input and Function O Message: User's message. You never use this instruction line. {{^tools.length}} -Thought: A single-line plan of how to answer the user's message. It must be immediately followed by Final Answer. +Thought: A single-line plan of how to answer the user's message, including an explanation of the reasoning behind it. It must be immediately followed by Final Answer. {{/tools.length}} {{#tools.length}} -Thought: A single-line step-by-step plan of how to answer the user's message. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here. +Thought: A single-line step-by-step plan of how to answer the user's message, including an explanation of the reasoning behind it. You can use the available functions defined above. This instruction line must be immediately followed by Function Name if one of the available functions defined above needs to be called, or by Final Answer. Do not provide the answer here. Function Name: Name of the function. This instruction line must be immediately followed by Function Input. Function Input: Function parameters. Empty object is a valid parameter. Function Output: Output of the function in JSON format. @@ -85,7 +85,7 @@ When the message is unclear or you need more information from the user, ask in F # Your capabilities Prefer to use these capabilities over functions. - You understand these languages: English, Spanish, French. -- You can translate and summarize, even long documents. +- You can translate, analyze and summarize, even long documents. # Notes - If you don't know the answer, say that you don't know. diff --git a/src/tools/python/python.ts b/src/tools/python/python.ts index 72e18be2..2969e160 100644 --- a/src/tools/python/python.ts +++ b/src/tools/python/python.ts @@ -49,7 +49,7 @@ export interface PythonToolOptions extends BaseToolOptions { export class PythonTool extends Tool { name = "Python"; description = [ - "Run Python and/or shell code and return the console output. Use for isolated calculations, computations, data or file manipulation but still prefer assistant's capabilities and NEVER use for text summarization.", + "Run Python and/or shell code and return the console output. Use for isolated calculations, computations, data or file manipulation but still prefer assistant's capabilities (IMPORTANT: Do not use for text analysis or summarization).", "Files provided by the user, or created in a previous run, will be accessible if and only if they are specified in the input. It is necessary to always print() results.", "The following shell commands are available:", "Use ffmpeg to convert videos.",