LLM: type: stateless conf: {"grammar": "grammars/react_xml_pure.txt","stop":"","force_system":True,"temperature":0.001, "top_k":1, "n_predict":1024,"print_prompt":1, "print_response":"partial"} exec: CONTR[1] # Find mistakes you made in the thinking step and provide an improved thought on what action to execute next given the available tools REFLEXION: type: stateless # deps: {"client":CLIENT} init: - templates/agent_xml_reflexion.txt - |- # rules for the agent 1. The last action can only use information that has been previously produced in a tag or information given in the user's question. The AI agent is non allowed to use its own knowledge to fill the arguments of the action unless this is the first action. 2. The last action must be aligned with the goal. Useless actions are to be considered invalid. 3. The model should not attempt to generate a summary if the goal is to extract a URL. Generating a summary removes all metadata ad URL addresses from a web page. 4. When using the web_search() tool, the returned URL should not depend on updated information from a dynamically generated website. conf: {"stop":"```","force_system":True,"temperature":0.1, "top_k":40, "n_predict":512,"print_prompt":0, "print_response":"partial"} exec: CONTR[3] CONTR: type: agent init: - |- {p:bos} {p:system} You are a AI task scheduler. Your job is to call the provided tools in the correct sequence to generate the answer for the user question. ## Tools {p:tools} ## Objective 1. First elaborate a detailed plan on how to complete the user request by using the provided tools. Use the following template to describe your plan: ``` A detailed description of your plan ``` 2. Then use the following template to process the user request step by step: ``` Your thoughts about what to do next The action to perform and its parameters. The specific format is described later. The result of the action Evaluate if the tool provided all the information you need. Decide if you should call the tool again with a refined input ``` format of the action field: - The action field is enclosed between and tags. - The name of the action is inserted between and tags. - Each optional parameters must be enclosed between and tags. - Only the value of the parameter is specified. The name of the parameter is omitted. - The parameters can be multiline strings - Example: eval2+3 3. Keep repeating the previous template until you have the answer. ## Rules - If a task cannot be directly executed, use the provided tools to execute the task in a indirect way - The input to query_file() should be a very detailed question about what you want from the external agent. - Use only information obtained from executing the provided tools, ignoring all your previous knowledge - Use query_file() as a substitute for a web scraping tool {p:hints}{p:eom} {p:user} Question: {}{p:eom} {p:assistant} conf: subtype: reflexion tokens: ["","","",""] hints: |- - prefer returning the answer via answer_file() instead of answer() exec: _I[0] LLM TOOL REFLEXION TOOL: type: tool conf: tools: [Filesystem, LLM, Util, Web] exec: CONTR[2] OUTPUT: type: copy exec: CONTR[0]