Skip to content
代码片段 群组 项目
提交 f40f28c1 编辑于 作者: Jan Provaznik's avatar Jan Provaznik
浏览文件

Merge branch 'nd/fix-direct-answer-response' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -130,7 +130,7 @@ def conversation ...@@ -130,7 +130,7 @@ def conversation
Thought: you should always think about what to do Thought: you should always think about what to do
Action: the action to take, should be one tool from this list or an direct answer (then use DirectAnswer as action): [%<tool_names>s] Action: the action to take, should be one tool from this list or an direct answer (then use DirectAnswer as action): [%<tool_names>s]
Action Input: the input to the action needs to be provided for every action that uses a tool Action Input: the input to the action needs to be provided for every action that uses a tool
Observation: the result of the actions. If the Action is DirectAnswer never write an Observation! Observation: the result of the actions. If the Action is DirectAnswer never write an Observation, but remember that you're still #{AGENT_NAME}.
... (this Thought/Action/Action Input/Observation sequence can repeat N times) ... (this Thought/Action/Action Input/Observation sequence can repeat N times)
...@@ -139,7 +139,7 @@ def conversation ...@@ -139,7 +139,7 @@ def conversation
When concluding your response, provide the final answer as "Final Answer:" as soon as the answer is recognized. When concluding your response, provide the final answer as "Final Answer:" as soon as the answer is recognized.
If no tool is needed, give a final answer with "Final Answer: DirectAnswer" for the Action parameter and skip writing an Observation. If no tool is needed, give a final answer with "Action: DirectAnswer" for the Action parameter and skip writing an Observation.
Begin! Begin!
PROMPT PROMPT
), ),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册