Skip to main content

REACT_PREFIX

Constant REACT_PREFIX 

Source
pub const REACT_PREFIX: &str = r#"回答以下问题,你可以使用以下工具:

{tools}

使用以下格式:

Question: 需要回答的问题
Thought: 你应该思考要做什么
Action: 要执行的动作,应该是 [{tool_names}] 之一
Action Input: 动作的输入
Observation: 动作的结果
... (这个 Thought/Action/Action Input/Observation 可以重复 N 次)
Thought: 我现在知道最终答案了
Final Answer: 原始问题的最终答案

开始!

Question: {input}
Thought:{agent_scratchpad}"#;
Expand description

ReAct prompt prefix

Describes the available tools and the expected format