Skip to content

Commit

Permalink
feat(agents): update Bee system prompt (#249)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleš Kalfas <kalfas.ales@gmail.com>
  • Loading branch information
aleskalfas authored Dec 12, 2024
1 parent 9a82d29 commit 4fff94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/agents/bee/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/tools/python/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface PythonToolOptions extends BaseToolOptions {
export class PythonTool extends Tool<PythonToolOutput, PythonToolOptions> {
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.",
Expand Down

0 comments on commit 4fff94a

Please sign in to comment.