Skip to content

Commit 01769f5

Browse files
committed
fix: rename meta_filter_relevant_tools to meta_search_tools
Changes the actual tool name from meta_filter_relevant_tools to meta_search_tools for consistency with the meta search tools terminology. - Updated tool name in stackone_ai/meta_search_tools.py - Updated description references to use new tool name - Updated README.md example to use meta_search_tools - Updated all test assertions to check for correct tool name - Updated example file to use new tool name - All tests passing (50/50) - Linting and type checking clean
1 parent 34e922d commit 01769f5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tools = toolset.get_tools("hris_*")
4040
meta_tools = tools.meta_search_tools()
4141

4242
# Search for relevant tools using natural language
43-
filter_tool = meta_tools.get_tool("meta_filter_relevant_tools")
43+
filter_tool = meta_tools.get_tool("meta_search_tools")
4444
results = filter_tool.call(query="manage employees", limit=5)
4545

4646
# Execute discovered tools dynamically

examples/meta_search_tools_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def example_meta_tools_basic():
3131
meta_tools = all_tools.meta_search_tools()
3232

3333
# Get the filter tool to search for relevant tools
34-
filter_tool = meta_tools.get_tool("meta_filter_relevant_tools")
34+
filter_tool = meta_tools.get_tool("meta_search_tools")
3535
if filter_tool:
3636
# Search for employee management tools
3737
result = filter_tool.call(query="manage employees create update list", limit=5, minScore=0.0)
@@ -55,7 +55,7 @@ def example_meta_tools_with_execution():
5555
meta_tools = all_tools.meta_search_tools()
5656

5757
# Step 1: Search for relevant tools
58-
filter_tool = meta_tools.get_tool("meta_filter_relevant_tools")
58+
filter_tool = meta_tools.get_tool("meta_search_tools")
5959
execute_tool = meta_tools.get_tool("meta_execute_tool")
6060

6161
if filter_tool and execute_tool:

stackone_ai/meta_search_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def create_meta_search_tools_filter_tool(index: ToolIndex) -> StackOneTool:
115115
Returns:
116116
Meta tool for filtering relevant tools
117117
"""
118-
name = "meta_filter_relevant_tools"
118+
name = "meta_search_tools"
119119
description = (
120120
"Searches for relevant tools based on a natural language query. "
121121
"This tool should be called first to discover available tools before executing them."
@@ -210,7 +210,7 @@ def create_meta_search_tools_execute_tool(tools_collection: Tools) -> StackOneTo
210210
name = "meta_execute_tool"
211211
description = (
212212
"Executes a tool by name with the provided parameters. "
213-
"Use this after discovering tools with meta_filter_relevant_tools."
213+
"Use this after discovering tools with meta_search_tools."
214214
)
215215

216216
parameters = ToolParameters(

tests/test_meta_search_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_filter_tool_creation(self, sample_tools):
140140
index = ToolIndex(sample_tools)
141141
filter_tool = create_meta_search_tools_filter_tool(index)
142142

143-
assert filter_tool.name == "meta_filter_relevant_tools"
143+
assert filter_tool.name == "meta_search_tools"
144144
assert "natural language query" in filter_tool.description.lower()
145145

146146
def test_filter_tool_execute(self, sample_tools):
@@ -241,15 +241,15 @@ def test_meta_search_tools_creation(self, tools_collection):
241241

242242
# Check tool names
243243
tool_names = [tool.name for tool in meta_tools.tools]
244-
assert "meta_filter_relevant_tools" in tool_names
244+
assert "meta_search_tools" in tool_names
245245
assert "meta_execute_tool" in tool_names
246246

247247
def test_meta_search_tools_functionality(self, tools_collection):
248248
"""Test that meta search tools work correctly"""
249249
meta_tools = tools_collection.meta_search_tools()
250250

251251
# Get the filter tool
252-
filter_tool = meta_tools.get_tool("meta_filter_relevant_tools")
252+
filter_tool = meta_tools.get_tool("meta_search_tools")
253253
assert filter_tool is not None
254254

255255
# Search for tools

0 commit comments

Comments
 (0)