Skip to content

Commit 34e922d

Browse files
committed
docs: update comments to use "Meta Search Tools" terminology
Updated all references from "meta tools" to "meta search tools" in: - README.md section headers and descriptions - stackone_ai/meta_search_tools.py docstrings and comments - stackone_ai/models.py method documentation - tests/test_meta_search_tools.py test descriptions - examples/meta_search_tools_example.py comments and output
1 parent faca033 commit 34e922d

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ employee = employee_tool.call(id="employee-id")
3030
employee = employee_tool.execute({"id": "employee-id"})
3131
```
3232

33-
## Meta Tools (Beta)
33+
## Meta Search Tools (Beta)
3434

35-
Meta tools enable dynamic tool discovery and execution without hardcoding tool names:
35+
Meta search tools enable dynamic tool discovery and execution without hardcoding tool names:
3636

3737
```python
38-
# Get meta tools for dynamic discovery
38+
# Get meta search tools for dynamic discovery
3939
tools = toolset.get_tools("hris_*")
4040
meta_tools = tools.meta_search_tools()
4141

@@ -54,7 +54,7 @@ result = execute_tool.call(toolName="hris_list_employees", params={"limit": 10})
5454
- AI-friendly tool descriptions and parameters
5555
- **Tool Calling**: Direct method calling with `tool.call()` for intuitive usage
5656
- **Glob Pattern Filtering**: Advanced tool filtering with patterns like `"hris_*"` and exclusions `"!hris_delete_*"`
57-
- **Meta Tools** (Beta): Dynamic tool discovery and execution based on natural language queries
57+
- **Meta Search Tools** (Beta): Dynamic tool discovery and execution based on natural language queries
5858
- Integration with popular AI frameworks:
5959
- OpenAI Functions
6060
- LangChain Tools

examples/meta_search_tools_example.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python
22
"""
3-
Example demonstrating meta tools for dynamic tool discovery and execution.
3+
Example demonstrating meta search tools for dynamic tool discovery and execution.
44
5-
Meta tools allow AI agents to search for relevant tools based on natural language queries
5+
Meta search tools allow AI agents to search for relevant tools based on natural language queries
66
and execute them dynamically without hardcoding tool names.
77
"""
88

@@ -17,7 +17,7 @@
1717

1818

1919
def example_meta_tools_basic():
20-
"""Basic example of using meta tools for tool discovery"""
20+
"""Basic example of using meta search tools for tool discovery"""
2121
print("🔍 Example 1: Dynamic tool discovery\n")
2222

2323
# Initialize StackOne toolset
@@ -27,7 +27,7 @@ def example_meta_tools_basic():
2727
all_tools = toolset.get_tools("hris_*")
2828
print(f"Total HRIS tools available: {len(all_tools)}")
2929

30-
# Get meta tools for dynamic discovery
30+
# Get meta search tools for dynamic discovery
3131
meta_tools = all_tools.meta_search_tools()
3232

3333
# Get the filter tool to search for relevant tools
@@ -113,8 +113,8 @@ def example_tool_calling():
113113

114114

115115
def example_with_openai():
116-
"""Example of using meta tools with OpenAI"""
117-
print("🤖 Example 4: Using meta tools with OpenAI\n")
116+
"""Example of using meta search tools with OpenAI"""
117+
print("🤖 Example 4: Using meta search tools with OpenAI\n")
118118

119119
try:
120120
from openai import OpenAI
@@ -125,14 +125,14 @@ def example_with_openai():
125125
# Initialize StackOne toolset
126126
toolset = StackOneToolSet()
127127

128-
# Get HRIS tools and their meta tools
128+
# Get HRIS tools and their meta search tools
129129
hris_tools = toolset.get_tools("hris_*")
130130
meta_tools = hris_tools.meta_search_tools()
131131

132132
# Convert to OpenAI format
133133
openai_tools = meta_tools.to_openai()
134134

135-
# Create a chat completion with meta tools
135+
# Create a chat completion with meta search tools
136136
response = client.chat.completions.create(
137137
model="gpt-4",
138138
messages=[
@@ -177,7 +177,7 @@ def example_with_langchain():
177177
tools = toolset.get_tools("hris_list_*")
178178
langchain_tools = tools.to_langchain()
179179

180-
# Get meta tools as well
180+
# Get meta search tools as well
181181
meta_tools = tools.meta_search_tools()
182182
langchain_meta_tools = meta_tools.to_langchain()
183183

@@ -195,7 +195,7 @@ def example_with_langchain():
195195
[
196196
(
197197
"system",
198-
"You are an HR assistant. Use the meta tools to discover and execute relevant tools.",
198+
"You are an HR assistant. Use the meta search tools to discover and execute relevant tools.",
199199
),
200200
("human", "{input}"),
201201
("placeholder", "{agent_scratchpad}"),
@@ -222,7 +222,7 @@ def example_with_langchain():
222222
def main():
223223
"""Run all examples"""
224224
print("=" * 60)
225-
print("StackOne AI SDK - Meta Tools & Tool Calling Examples")
225+
print("StackOne AI SDK - Meta Search Tools & Tool Calling Examples")
226226
print("=" * 60)
227227
print()
228228

stackone_ai/meta_search_tools.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Meta tools for dynamic tool discovery and execution"""
1+
"""Meta search tools for dynamic tool discovery and execution"""
22

33
from __future__ import annotations
44

@@ -175,7 +175,7 @@ def execute_filter(arguments: str | JsonDict | None = None) -> JsonDict:
175175
execute_config = ExecuteConfig(
176176
name=name,
177177
method="POST",
178-
url="", # Meta tools don't make HTTP requests
178+
url="", # Meta search tools don't make HTTP requests
179179
headers={},
180180
)
181181

@@ -188,7 +188,7 @@ def __init__(self) -> None:
188188
description=description,
189189
parameters=parameters,
190190
_execute_config=execute_config,
191-
_api_key="", # Meta tools don't need API key
191+
_api_key="", # Meta search tools don't need API key
192192
_account_id=None,
193193
)
194194

@@ -254,7 +254,7 @@ def execute_tool(arguments: str | JsonDict | None = None) -> JsonDict:
254254
execute_config = ExecuteConfig(
255255
name=name,
256256
method="POST",
257-
url="", # Meta tools don't make HTTP requests
257+
url="", # Meta search tools don't make HTTP requests
258258
headers={},
259259
)
260260

@@ -267,7 +267,7 @@ def __init__(self) -> None:
267267
description=description,
268268
parameters=parameters,
269269
_execute_config=execute_config,
270-
_api_key="", # Meta tools don't need API key
270+
_api_key="", # Meta search tools don't need API key
271271
_account_id=None,
272272
)
273273

stackone_ai/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ def to_langchain(self) -> Sequence[BaseTool]:
481481
return [tool.to_langchain() for tool in self.tools]
482482

483483
def meta_search_tools(self) -> "Tools":
484-
"""Return meta tools for tool discovery and execution
484+
"""Return meta search tools for tool discovery and execution
485485
486-
Meta tools enable dynamic tool discovery and execution based on natural language queries.
486+
Meta search tools enable dynamic tool discovery and execution based on natural language queries.
487487
488488
Returns:
489489
Tools collection containing meta_filter_relevant_tools and meta_execute_tool
@@ -500,7 +500,7 @@ def meta_search_tools(self) -> "Tools":
500500
# Create search index
501501
index = ToolIndex(self.tools)
502502

503-
# Create meta tools
503+
# Create meta search tools
504504
filter_tool = create_meta_search_tools_filter_tool(index)
505505
execute_tool = create_meta_search_tools_execute_tool(self)
506506

tests/test_meta_search_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Tests for meta tools functionality"""
1+
"""Tests for meta search tools functionality"""
22

33
import pytest
44
import responses

0 commit comments

Comments
 (0)