First_agent_template / agent.json
rakesh-dvg's picture
Update agent.json
c34da8b verified
raw
history blame contribute delete
897 Bytes
{
"tools": [
"get_time",
"final_answer"
],
"model": {
"class": "HfApiModel",
"data": {
"max_tokens": 512,
"temperature": 0.5,
"model_id": "Qwen/Qwen2.5-Coder-32B-Instruct"
}
},
"prompt_templates": {
"system_prompt": "You are a helpful assistant who can answer questions by calling the get_time tool.\n\nWhen you receive a question about the time in a specific timezone (like America/New_York), extract the timezone string and call get_time(timezone_str=\"...\"). Then return the answer using final_answer().\n\nIf the question is unrelated, respond appropriately.\n\nUse the format:\nThought: ...\nCode:\n```py\n# code here\n```\n<end_code>",
"planning": {
"initial_facts": "You can call get_time(timezone_str) to get current time in a timezone."
}
},
"max_steps": 3,
"authorized_imports": [
"datetime",
"pytz"
]
}