Spaces:
Sleeping
Sleeping
Update agent.json
Browse files- agent.json +8 -9
agent.json
CHANGED
@@ -1,26 +1,25 @@
|
|
1 |
{
|
2 |
"tools": [
|
3 |
-
"
|
4 |
-
"visit_webpage",
|
5 |
-
"get_current_time_in_timezone",
|
6 |
"final_answer"
|
7 |
],
|
8 |
"model": {
|
9 |
"class": "HfApiModel",
|
10 |
"data": {
|
11 |
-
"max_tokens":
|
12 |
"temperature": 0.5,
|
13 |
"model_id": "Qwen/Qwen2.5-Coder-32B-Instruct"
|
14 |
}
|
15 |
},
|
16 |
"prompt_templates": {
|
17 |
-
"system_prompt": "You are
|
|
|
|
|
|
|
18 |
},
|
|
|
19 |
"authorized_imports": [
|
20 |
"datetime",
|
21 |
-
"
|
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 |
}
|