You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/framework/configuration.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,16 +94,29 @@ tools:
94
94
95
95
**Using Tools in Agents:**
96
96
97
+
Each item in the `tools` list can be:
98
+
99
+
-**String** – tool name (resolved from the `tools:` section or `ToolRegistry`)
100
+
-**Object** – dict with required `"name"` and optional parameters passed to the tool at runtime as kwargs (e.g. search settings for search tools)
101
+
97
102
```yaml
98
103
agents:
99
104
my_agent:
100
105
base_class: "SGRToolCallingAgent"
101
106
tools:
102
-
- "web_search_tool"# From ToolRegistry
103
-
- "reasoning_tool"# From tools section
104
-
- "custom_tool"# From tools section
107
+
- "web_search_tool"
108
+
- "reasoning_tool"
109
+
# Per-tool config: name + kwargs (e.g. search settings)
110
+
- name: "extract_page_content_tool"
111
+
content_limit: 2000
112
+
- name: "web_search_tool"
113
+
max_results: 15
114
+
max_searches: 6
115
+
# tavily_api_key, max_searches, etc. can be set here instead of in global search:
105
116
```
106
117
118
+
Search-related settings (`tavily_api_key`, `tavily_api_base_url`, `max_results`, `content_limit`, `max_searches`) can be set globally in `search:` or per-tool in the tool object. Tool kwargs override agent-level `search` for that tool.
119
+
107
120
!!! note "Tool Resolution Order"
108
121
When resolving tools, the system checks in this order:
0 commit comments