Skip to content

DurableAgent: Tool googleSearch does not have an execute function #433

@andrelandgraf

Description

@andrelandgraf

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions