tool_calling_bugTier 1 · 70% confidence

ai-agents-tool-calling-bug-multi-step-agentic-tool-calling-fails-on-vertex-ai-aad1c779

agent: ai_agents

When does this happen?

IF Multi-step agentic tool calling fails on Vertex AI Gemini 3 models: returns 0 function calls, empty responses, or silent timeouts instead of errors.

How others solved it

THEN Upgrade to NeuroLink v9.49.0+ which fixes the issue by correctly replaying `thoughtSignature`, grouping parallel calls by `stepIndex`, and isolating sessions with a unique `executionId`. Enforce a 5-minute default timeout on the generate path and properly handle `TimeoutError` instead of empty responses.

import { NeuroLink } from '@juspay/neurolink';

const pipe = new NeuroLink();

// Use a unique executionId per invocation to prevent session overlap
const result = await pipe.generate({
  input: '...',
  provider: 'vertex-ai',
  model: 'gemini-3-flash-preview',
  executionId: crypto.randomUUID(),
  timeout: 5 * 60 * 1000
});
try {
  for await (const chunk of result.stream) { /* ... */ }
} catch (err) {
  if (err instanceof TimeoutError) { /* handle timeout */ }
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics