-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
Code:
const tools: ToolSet = {
webSearch: google.tools.googleSearch({}),
urlContext: google.tools.urlContext({}),
};
export const durableChatAgent = new DurableAgent({
model: "google/gemini-3-pro-preview",
system: systemPrompt,
tools,
});Error:
Error: Tool "webSearch" does not have an execute function
at executeTool (node_modules/@workflow/ai/src/agent/durable-agent.ts:198:44)
at anonymous (node_modules/@workflow/ai/src/agent/durable-agent.ts:164:61)
at Array.map (<anonymous>)
at DurableAgent.stream (node_modules/@workflow/ai/src/agent/durable-agent.ts:163:18)Package versions:
- @ai-sdk/google: "^3.0.0-beta.56",
- @ai-sdk/react: "^3.0.0-beta.102",
- @workflow/ai: "^4.0.1-beta.21",
- ai: "^6.0.0-beta.102
- workflow: "^4.0.1-beta.21",
Was able to reproduce here: https://github.com/andrelandgraf/google-websearch-debug (Vercel AI Gateway API key needed for code to run)
AlexGodard
Metadata
Metadata
Assignees
Labels
No labels