Skip to content

Commit e1fb3dd

Browse files
committed
Note on the fetch tools for actions that user expect to discover
1 parent 2ae1e77 commit e1fb3dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ search_tool = utility.get_tool("tool_search")
373373
results = search_tool.call(query="onboard a new team member", limit=5)
374374
```
375375

376+
> `tool_search` queries the full backend catalog, so make sure `fetch_tools()` covers the actions you expect to discover.
377+
376378
See [Semantic Search Example](examples/semantic_search_example.py) for complete patterns including OpenAI and LangChain integration.
377379

378380
## Examples

examples/utility_tools_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def example_utility_tools_semantic():
100100

101101
filter_tool = utility_tools.get_tool("tool_search")
102102
if filter_tool:
103-
# Semantic search understands intent — "onboard new hire" finds termination tools
103+
# Semantic search understands intent — "onboard new hire" finds onboarding tools
104104
result = filter_tool.call(query="onboard a new team member", limit=5, minScore=0.0)
105105

106106
print("Found relevant tools (semantic search):")

0 commit comments

Comments
 (0)