Skip to content

Commit 34c8bc9

Browse files
Impement PR suggetion and add the salesforce example rather than hris. Brif document the search modes
1 parent 4785d87 commit 34c8bc9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ StackOne AI provides a unified interface for accessing various SaaS tools throug
1616
- **Tool Calling**: Direct method calling with `tool.call()` for intuitive usage
1717
- **MCP-backed Dynamic Discovery**: Fetch tools at runtime via `fetch_tools()` with provider, action, and account filtering
1818
- **Advanced Tool Filtering**:
19-
- Glob pattern filtering with patterns like `"hris_*"` and exclusions `"!hris_delete_*"`
19+
- Glob pattern filtering with patterns like `"salesforce_*"` and exclusions `"!*_delete_*"`
2020
- Provider and action filtering
2121
- Multi-account support
2222
- **Semantic Search**: AI-powered tool discovery using natural language queries
@@ -342,6 +342,21 @@ openai_tools = tools.to_openai()
342342
results = toolset.search_action_names("time off requests", top_k=5)
343343
```
344344

345+
### Search Modes
346+
347+
Control which search backend `search_tools()` uses via the `search` parameter:
348+
349+
```python
350+
# "auto" (default) — tries semantic search first, falls back to local
351+
tools = toolset.search_tools("manage employees", search="auto")
352+
353+
# "semantic" — semantic API only, raises if unavailable
354+
tools = toolset.search_tools("manage employees", search="semantic")
355+
356+
# "local" — local BM25+TF-IDF only, no semantic API call
357+
tools = toolset.search_tools("manage employees", search="local")
358+
```
359+
345360
Results are automatically scoped to connectors in your linked accounts. See [Semantic Search Example](examples/semantic_search_example.py) for utility tools integration, OpenAI, and LangChain patterns.
346361

347362
## Examples

0 commit comments

Comments
 (0)