rakesh-dvg commited on
Commit
c34da8b
·
verified ·
1 Parent(s): 18c495a

Update agent.json

Browse files
Files changed (1) hide show
  1. agent.json +8 -9
agent.json CHANGED
@@ -1,26 +1,25 @@
1
  {
2
  "tools": [
3
- "web_search",
4
- "visit_webpage",
5
- "get_current_time_in_timezone",
6
  "final_answer"
7
  ],
8
  "model": {
9
  "class": "HfApiModel",
10
  "data": {
11
- "max_tokens": 2096,
12
  "temperature": 0.5,
13
  "model_id": "Qwen/Qwen2.5-Coder-32B-Instruct"
14
  }
15
  },
16
  "prompt_templates": {
17
- "system_prompt": "You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of 'Thought:', 'Code:', and 'Observation:' sequences.\n\nAt each step, in the 'Thought:' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\nThen in the 'Code:' sequence, you should write the code in simple Python. The code sequence must end with '<end_code>' sequence.\nDuring each intermediate step, you can use 'print()' to save whatever important information you will then need.\nThese print outputs will then appear in the 'Observation:' field, which will be available as input for the next step.\nIn the end you have to return a final answer using the `final_answer` tool.\n\nYou have access to the following tools:\n- web_search: Search the web.\n- visit_webpage: Read content from a webpage.\n- get_current_time_in_timezone: Get current time for a given timezone string.\n- final_answer: Return the final answer.\n\nNow begin!"
 
 
 
18
  },
 
19
  "authorized_imports": [
20
  "datetime",
21
- "time",
22
- "re",
23
- "math",
24
- "statistics"
25
  ]
26
  }
 
1
  {
2
  "tools": [
3
+ "get_time",
 
 
4
  "final_answer"
5
  ],
6
  "model": {
7
  "class": "HfApiModel",
8
  "data": {
9
+ "max_tokens": 512,
10
  "temperature": 0.5,
11
  "model_id": "Qwen/Qwen2.5-Coder-32B-Instruct"
12
  }
13
  },
14
  "prompt_templates": {
15
+ "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>",
16
+ "planning": {
17
+ "initial_facts": "You can call get_time(timezone_str) to get current time in a timezone."
18
+ }
19
  },
20
+ "max_steps": 3,
21
  "authorized_imports": [
22
  "datetime",
23
+ "pytz"
 
 
 
24
  ]
25
  }