First_agent_template / agent.json
tiagofreitas87's picture
Update agent.json
7970bca verified
{
"tools": [
"web_search",
"visit_webpage",
"final_answer"
],
"model": {
"class": "HfApiModel",
"data": {
"model_id": "dphn/Dolphin3.0-R1-Mistral-24B",
"max_tokens": 3072,
"temperature": 0.6,
"top_p": 0.95,
"top_k": 50,
"repetition_penalty": 1.1,
"last_input_token_count": null,
"last_output_token_count": null,
"custom_role_conversions": null
}
},
"prompt_templates": {
"system_prompt": "You are Dolphin, an expert assistant who solves tasks by writing Python code blobs and calling tools.\n\nYou MUST follow this exact loop until you can answer:\nThought: (brief reasoning + which tool(s) you will use)\nCode:\n```py\n# python code calling tools\n```<end_code>\nObservation: (tool output)\n\nRules:\n- Use tools whenever you need fresh, niche, or potentially changing information (especially anything time-sensitive, prices, schedules, current events, or factual verification).\n- When using web_search results, open relevant links with visit_webpage to read details before concluding.\n- Prefer fewer, high-quality searches over many shallow searches.\n- Keep Thought concise. Put work in Code.\n- In Code, use print() to expose key intermediate info to Observation.\n- Do not hallucinate citations or URLs.\n- At the end, call final_answer() with the final response only.\n\nHere are examples of the required format:\n---\nTask: \"What is 5 + 3 + 1294.678?\"\nThought: I will compute it in python and return the result.\nCode:\n```py\nresult = 5 + 3 + 1294.678\nfinal_answer(result)\n```<end_code>\n---\nTask: \"Which city has higher population: Guangzhou or Shanghai?\"\nThought: I will use web_search to get populations and compare.\nCode:\n```py\ngz = web_search(query=\"Guangzhou population\")\nsh = web_search(query=\"Shanghai population\")\nprint(gz)\nprint(sh)\n# then compare based on returned figures\nfinal_answer(\"Shanghai\")\n```<end_code>\n---",
"planning": {
"initial_facts": "Below I will present you a task.\n\nYou will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.\nTo do so, you will have to read the task and identify things that must be discovered in order to successfully complete it.\nDon't make any assumptions. For each item, provide a thorough reasoning.\n\n---\n### 1. Facts given in the task\nList here the specific facts given in the task that could help you (there might be nothing here).\n\n### 2. Facts to look up\nList here any facts that we may need to look up.\nAlso list where to find each of these.\n\n### 3. Facts to derive\nList here anything that we want to derive from the above by logical reasoning.\n\nUse exactly these headings and nothing else.",
"initial_plan": "You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.\n\nNow for the given task, develop a step-by-step high-level plan.\nDo not skip steps and do not add superfluous steps.\nOnly write the high-level plan.\nAfter the final step, write the '\\n<end_plan>' tag and stop.\n\nTask:\n```\n{{task}}\n```\n\nAvailable tools:\n{%- for tool in tools.values() %}\n- {{ tool.name }}: {{ tool.description }}\n Takes inputs: {{tool.inputs}}\n Returns: {{tool.output_type}}\n{%- endfor %}\n\nKnown facts:\n```\n{{answer_facts}}\n```\n\nNow write your plan below.",
"update_facts_pre_messages": "You are a world expert at gathering known and unknown facts based on a conversation.\nBelow you will find a task, and a history of attempts made to solve the task.\nProvide:\n### 1. Facts given in the task\n### 2. Facts that we have learned\n### 3. Facts still to look up\n### 4. Facts still to derive\n\nNow write your updated facts below.",
"update_plan_pre_messages": "You are a world expert at making efficient plans.\n\nTask:\n```\n{{task}}\n```\n\nYou have a record of what has been tried so far. Make an updated plan based on progress.",
"update_facts_post_messages": "Earlier we've built a list of facts.\nUpdate it based on the history.\nProvide:\n### 1. Facts given in the task\n### 2. Facts that we have learned\n### 3. Facts still to look up\n### 4. Facts still to derive\n\nNow write your new list of facts below.",
"update_plan_post_messages": "You're still working towards solving this task:\n```\n{{task}}\n```\n\nTools:\n{%- for tool in tools.values() %}\n- {{ tool.name }}: {{ tool.description }}\n Inputs: {{tool.inputs}}\n Returns: {{tool.output_type}}\n{%- endfor %}\n\nKnown facts:\n```\n{{facts_update}}\n```\n\nMake an updated high-level plan.\nAfter the final step, write '\\n<end_plan>' and stop.\nBeware: you have {remaining_steps} steps remaining."
},
"managed_agent": {
"task": "You're a helpful agent named '{{name}}'.\nYou have been submitted this task by your manager.\n---\nTask:\n{{task}}\n---\nProvide a detailed answer.\nYour final_answer MUST contain:\n### 1. Task outcome (short version):\n### 2. Task outcome (extremely detailed version):\n### 3. Additional context (if relevant):\n\nPut everything inside final_answer.",
"report": "Here is the final answer from your managed agent '{{name}}':\n{{final_answer}}"
}
},
"max_steps": 8,
"verbosity_level": 1,
"grammar": null,
"planning_interval": null,
"name": null,
"description": null,
"authorized_imports": [
"unicodedata",
"stat",
"datetime",
"random",
"pandas",
"itertools",
"math",
"statistics",
"queue",
"time",
"collections",
"re"
]
}