Skip to content

Commit 96010c6

Browse files
Doc update
1 parent 9c9e48c commit 96010c6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

stackone_ai/toolset.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,18 +978,14 @@ def search_action_names(
978978
# Lightweight: inspect results before fetching
979979
results = toolset.search_action_names("manage employees")
980980
for r in results:
981-
print(f"{r.action_name}: {r.similarity_score:.2f}")
981+
print(f"{r.id}: {r.similarity_score:.2f}")
982982
983983
# Account-scoped: only results for connectors in linked accounts
984984
results = toolset.search_action_names(
985985
"create employee",
986986
account_ids=["acc-123"],
987987
top_k=5
988988
)
989-
990-
# Then fetch specific high-scoring actions
991-
selected = [r.action_name for r in results if r.similarity_score > 0.7]
992-
tools = toolset.fetch_tools(actions=selected)
993989
"""
994990
if self._search_config is None:
995991
raise ToolsetConfigError(

0 commit comments

Comments
 (0)