Skip to content

Commit 2ae1e77

Browse files
committed
update the README gst
1 parent bf45364 commit 2ae1e77

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ result = execute_tool.call(toolName="hris_list_employees", params={"limit": 10})
328328

329329
## Semantic Search
330330

331-
Semantic search enables tool discovery using natural language instead of exact keyword matching. It understands intent and synonyms, so queries like "fire someone" or "check my to-do list" resolve to the right StackOne actions.
331+
Semantic search enables tool discovery using natural language instead of exact keyword matching. It understands intent and synonyms, so queries like "onboard new hire" or "check my to-do list" resolve to the right StackOne actions.
332332

333333
**How it works:** Your query is matched against all StackOne actions using semantic vector search. Results are automatically filtered to only the connectors available in your linked accounts, so you only get tools you can actually use.
334334

@@ -345,7 +345,6 @@ toolset = StackOneToolSet()
345345
tools = toolset.search_tools("manage employee records", top_k=5)
346346

347347
# Use with any framework
348-
openai_tools = tools.to_openai()
349348
langchain_tools = tools.to_langchain()
350349

351350
# Filter by connector

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 — "fire someone" finds termination tools
103+
# Semantic search understands intent — "onboard new hire" finds termination 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):")

stackone_ai/toolset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ def search_action_names(
474474
if effective_account_ids:
475475
all_tools = self.fetch_tools(account_ids=effective_account_ids)
476476
available_connectors = all_tools.get_connectors()
477+
if not available_connectors:
478+
return []
477479

478480
# Fetch max results to maximize results after connector filtering
479481
semantic_api_max = 500

0 commit comments

Comments
 (0)