Commit ac76d1b
authored
feat(search): Semantic Tool Search (#149)
* Senamtic Search on action in Python AI SDK
* Filter tools based on the SDK auth config and connector
* Use the local benchmark from the ai-generations
* Add Semantinc search bench mark with local benchmarks
* Fix CI lint errors
* Fix the lint in the benchmark file
* Formalise the docs and code
* Keep semantic search minimal in the README
* Remove the old benchmark data
* implement PR feedback suggestions from cubic
* fix nullable in the semantic tool schema
* limit override
* handle per connector calls to avoid the guesswork
* simplify utility_tools API by inferring semantic search from client presence
* Benchmark update and PR suggestions
* update the README gst
* Note on the fetch tools for actions that user expect to discover
* Update examples and improve the semantic seach
* Fix ruff issues
* Document the semantic search feature in the python files and example
* Respect the backend results unless top_k specified explicitly, add python only crewAI example
* move the crewAI tools conversation back in the example
* CI Trigger
* Fix unit tests with updated top_k behavior
* Update PR with correct approach mentioned in the PR comments
* Update example and remove unwated crewai examples
* Remove the crewai reference from the README
* fix(semantic-search): scope tool_search to user's linked connectors
When utility_tools(semantic_client=...) is used, tool_search now
searches only the connectors available in the fetched tools collection
instead of the full StackOne catalog. This prevents agents from
discovering tools they cannot execute.
- Add available_connectors param to create_semantic_tool_search
- Pass connectors from Tools.utility_tools() to scope searches
- Update docs, examples, and README to reflect scoping
- Add 4 new tests for scoping behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix the Ruff CI issue
* Add back creai intefration and test integration
* Remove the sematic search example from the tools
* Semantic Search
* Cubic suggestions
* Optinally support project_ids in the SDK search
* Update the client to use PR suggested client and use min_similarity from the server
* CI Fix
* Implement PR sugggestions and use the search and execute tools as standard way
* update example docs
* Update SDK as per PR suggestions
* Fix available connector early return
* Fix semantic search creation in fetch tools
* Fix semantic search creation in fetch tools revert back to lazy
* get rid of the utility tools completely as discussed
* Remove the reference of the semantic search
* Fix CI and lint issues
* Pass semantic Client to the toolset
* Add the search modes for local, semantic and auto with example
* Impement PR suggetion and add the salesforce example rather than hris. Brif document the search modes
* Remove unified categoried from the README and docs
* Remove the unified category reference from CLAUDE.md
* Refactor duplicate use Stackone API url and update tests
* Fix CI issues
* CI Only: skip guard fix and the timeout handling
* CI Only: skip guard fix and the timeout handling
* CI Only: ruff E501
* refactor search to make it aligned to the defender and future
* Fix CI
* CI Only: Ruff fix on toolset.py
* Fix ty checks
* Add topk example and add search default
---------1 parent 576e2fb commit ac76d1b
21 files changed
Lines changed: 2771 additions & 923 deletions
File tree
- examples
- stackone_ai
- feedback
- utils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
68 | 57 | | |
69 | 58 | | |
70 | 59 | | |
71 | | - | |
| 60 | + | |
72 | 61 | | |
73 | 62 | | |
74 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | | - | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | | - | |
| 309 | + | |
309 | 310 | | |
310 | | - | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
318 | 320 | | |
319 | | - | |
320 | | - | |
321 | | - | |
| 321 | + | |
| 322 | + | |
322 | 323 | | |
323 | | - | |
324 | | - | |
325 | | - | |
| 324 | + | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
328 | 362 | | |
329 | 363 | | |
330 | 364 | | |
| |||
334 | 368 | | |
335 | 369 | | |
336 | 370 | | |
337 | | - | |
| 371 | + | |
| 372 | + | |
338 | 373 | | |
339 | 374 | | |
340 | 375 | | |
| |||
0 commit comments