Skip to content

Commit

Permalink
fix(bee-agent): rendering of empty lines in prompt (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoushavlena authored Sep 9, 2024
1 parent d54eb2a commit 8aad96e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agents/bee/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ Tool Input: {"id":178}
## Available tools
{{#tools}}
Tool Name: {{name}}
Tool Description: {{description}}
Tool Input Schema: {{schema}}
{{/tools}}
{{/tools.length}}
{{^tools.length}}
## Available tools
No tools are available at the moment therefore you mustn't provide any factual or historical information.
Expand Down Expand Up @@ -78,6 +79,7 @@ Responses must always have the following structure:
- When the problem seems too hard for the tool, the assistant tries to split the problem into a few smaller ones.
## Notes
- Any comparison table (including its content), file, image, link, or other asset must only be in the Final Answer.
- When the question is unclear, respond with a line starting with 'Final Answer:' followed by the information needed to solve the problem.
- When the user wants to chitchat instead, always respond politely.
Expand Down

0 comments on commit 8aad96e

Please sign in to comment.