Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 22:15 UTC
Add tool router preload support to TS SDK (#3309)
## Summary - Add `preload.tools` support to `ToolRouter.create()` using generated `@composio/client@0.1.0-alpha.67` session fields. - Expose returned session preload/config metadata on `ToolRouterSession` and ensure `session.tools()` includes preloaded tools from the backend session tools endpoint. - Route provider-wrapped session tool execution through the unified session `/execute` endpoint while preserving toolkit slugs for modifiers when schemas are available. - Add `session.execute(..., { account })` forwarding for direct app tool execution in multi-account sessions. ## Tests - `pnpm exec vitest run test/models/toolRouter.test.ts test/models/customToolRouting.test.ts` from `ts/packages/core` - `pnpm --filter @composio/core typecheck`
No changes.