akseljoonas HF Staff commited on
Commit
af26485
·
1 Parent(s): b958d01

reordered tools

Browse files
Files changed (1) hide show
  1. agent/core/tools.py +8 -7
agent/core/tools.py CHANGED
@@ -189,15 +189,10 @@ class ToolRouter:
189
  def create_builtin_tools() -> list[ToolSpec]:
190
  """Create built-in tool specifications"""
191
  print(
192
- f"Creating built-in tools: {HF_JOBS_TOOL_SPEC['name']}, {SEARCH_DOCS_TOOL_SPEC['name']}, {PLAN_TOOL_SPEC['name']}"
193
  )
 
194
  return [
195
- ToolSpec(
196
- name=HF_JOBS_TOOL_SPEC["name"],
197
- description=HF_JOBS_TOOL_SPEC["description"],
198
- parameters=HF_JOBS_TOOL_SPEC["parameters"],
199
- handler=hf_jobs_handler,
200
- ),
201
  ToolSpec(
202
  name=SEARCH_DOCS_TOOL_SPEC["name"],
203
  description=SEARCH_DOCS_TOOL_SPEC["description"],
@@ -210,4 +205,10 @@ def create_builtin_tools() -> list[ToolSpec]:
210
  parameters=PLAN_TOOL_SPEC["parameters"],
211
  handler=plan_tool_handler,
212
  ),
 
 
 
 
 
 
213
  ]
 
189
  def create_builtin_tools() -> list[ToolSpec]:
190
  """Create built-in tool specifications"""
191
  print(
192
+ f"Creating built-in tools: {SEARCH_DOCS_TOOL_SPEC['name']}, {PLAN_TOOL_SPEC['name']}, {HF_JOBS_TOOL_SPEC['name']}"
193
  )
194
+ # in order of importance
195
  return [
 
 
 
 
 
 
196
  ToolSpec(
197
  name=SEARCH_DOCS_TOOL_SPEC["name"],
198
  description=SEARCH_DOCS_TOOL_SPEC["description"],
 
205
  parameters=PLAN_TOOL_SPEC["parameters"],
206
  handler=plan_tool_handler,
207
  ),
208
+ ToolSpec(
209
+ name=HF_JOBS_TOOL_SPEC["name"],
210
+ description=HF_JOBS_TOOL_SPEC["description"],
211
+ parameters=HF_JOBS_TOOL_SPEC["parameters"],
212
+ handler=hf_jobs_handler,
213
+ ),
214
  ]