Objective
Create a Tier 5 Custom AI Workflow demonstrating Vercel AI SDK adapter usage with tool filtering (stitchTools({ include: [...] })), highlighting how to restrict or sandbox available tools for LLMs.
Code-Level Diagnosis
Code path: packages/sdk/examples/tool-filtering/
Mechanism: The packages/sdk/examples/ directory lacks the tool-filtering script.
Root cause: Missing concrete example isolating and demonstrating the Vercel AI SDK filtering capability inherent to stitchTools().
Current Implementation
// No tool-filtering example currently exists
Proposed Implementation
Files to modify: Create packages/sdk/examples/tool-filtering/index.ts and packages/sdk/examples/tool-filtering/README.md.
Integration (Before -> After)
+// Create tool-filtering index.ts and README.md
+import { stitchTools } from "@google/stitch-sdk/ai";
+import "../_require-key.js";
+// Implement logic restricting AI tools
Test Scenarios
- Execute
cd packages/sdk/examples/tool-filtering && bun index.ts -> Ensure script executes successfully and logs the filtered set of tools available to the simulated LLM runtime.
Target Files
- packages/sdk/examples/tool-filtering/index.ts
- packages/sdk/examples/tool-filtering/README.md
Boundary Rules
Restrict your modifications exclusively to the files listed in the Target Files section. Ensure your source changes are entirely backward-compatible if unowned tests outside your boundary fail. Retain all existing file names and locations outside your explicitly declared target list.
Fleet Context
Objective
Create a Tier 5 Custom AI Workflow demonstrating Vercel AI SDK adapter usage with tool filtering (
stitchTools({ include: [...] })), highlighting how to restrict or sandbox available tools for LLMs.Code-Level Diagnosis
Code path:
packages/sdk/examples/tool-filtering/Mechanism: The
packages/sdk/examples/directory lacks thetool-filteringscript.Root cause: Missing concrete example isolating and demonstrating the Vercel AI SDK filtering capability inherent to
stitchTools().Current Implementation
// No tool-filtering example currently existsProposed Implementation
Files to modify: Create
packages/sdk/examples/tool-filtering/index.tsandpackages/sdk/examples/tool-filtering/README.md.Integration (Before -> After)
Test Scenarios
cd packages/sdk/examples/tool-filtering && bun index.ts-> Ensure script executes successfully and logs the filtered set of tools available to the simulated LLM runtime.Target Files
Boundary Rules
Restrict your modifications exclusively to the files listed in the Target Files section. Ensure your source changes are entirely backward-compatible if unowned tests outside your boundary fail. Retain all existing file names and locations outside your explicitly declared target list.
Fleet Context
jules:session:7176599932609532727