Skip to content

feat(execution): allow custom tool discovery providers#857

Merged
RhysSullivan merged 2 commits into
RhysSullivan:mainfrom
aryasaatvik:feat/tool-discovery-provider
May 26, 2026
Merged

feat(execution): allow custom tool discovery providers#857
RhysSullivan merged 2 commits into
RhysSullivan:mainfrom
aryasaatvik:feat/tool-discovery-provider

Conversation

@aryasaatvik
Copy link
Copy Markdown
Contributor

Summary

  • add an optional ToolDiscoveryProvider to createExecutionEngine
  • route sandbox tools.search through the provider while preserving the existing lexical search as the default
  • export the provider types and document SDK usage

Verification

  • bun run --cwd packages/core/execution test -- src/tool-invoker.test.ts
  • bun run --cwd packages/core/execution typecheck
  • bun run --cwd apps/local typecheck
  • bun run --cwd apps/cloud typecheck
  • bun run --cwd packages/hosts/mcp typecheck
  • git diff --check

Note: typecheck commands report existing warnings/suggestions unrelated to this change.

Add an optional ToolDiscoveryProvider to createExecutionEngine so hosts can override sandbox tools.search without replacing the code executor or normal tool invoker. Preserve the existing lexical search as the default provider and document the SDK usage.
@RhysSullivan RhysSullivan merged commit c598d64 into RhysSullivan:main May 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants