Skip to content

feat(vercel): add variations for streaming/blocking, anthropic/openai and functions/ToolLoopAgent#129

Merged
constantinius merged 2 commits intomainfrom
constantinius/feat/vercel/add-variations
Apr 1, 2026
Merged

feat(vercel): add variations for streaming/blocking, anthropic/openai and functions/ToolLoopAgent#129
constantinius merged 2 commits intomainfrom
constantinius/feat/vercel/add-variations

Conversation

@constantinius
Copy link
Copy Markdown
Collaborator

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 1, 2026

@constantinius constantinius requested review from a team and nicohrubec April 1, 2026 07:40
Comment thread src/runner/templates/agents/nextjs/vercel/template.njk Outdated
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread src/runner/templates/agents/node/vercel/template.njk
Comment thread src/runner/templates/agents/nextjs/vercel/template.njk
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

🔴 AI SDK Integration Test Results

Status: 3 regressions detected

Summary

Metric main PR Change
Total Tests 547 667 +120
Passed 393 450 +57 ✅
Failed 132 195 +63 ⚠️

🔴 Regressions

These tests were passing on main but are now failing:

cloudflare/vercel :: Basic Embeddings Test (blocking)

Error: Test execution failed: Wrangler exited with code 1

Test execution failed: Wrangler exited with code 1
stdout: 
 ⛅️ wrangler 4.79.0
───────────────────
Using secrets defined in .dev.vars
Your Worker has access to the following bindings:
Binding                                                                    Resource                  Mode
env.SENTRY_DSN ("http://public@localhost:44927/1435284...")                Environment Variable      local
env.RUN_ID ("run-1775058649015-yshdv5o")                                   Environment Variable      local
env.OPENAI_API_KEY ("(hidden)")                                            Environment Variable      local
env.ANTHROPIC_API_KEY ("(hidden)")                                         Environment Variable      local
env.GOOGLE_GENAI_API_KEY ("(hidden)")                                      Environment Variable      local

*** Fatal uncaught kj::Exception: kj/async-io-unix.c++:945: failed: ::bind(sockfd, &addr.generic, addrlen): Address already in use; toString() = [::1]:32818
stack: /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5100306 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51000d9 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@50fe6cd /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1febd5c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fec6cb /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fed25d /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1feea9c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f3f6e3 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5134385 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51348a8 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132371 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132162 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26d15 /lib/x86_64-linux-gnu/libc.so.6@2a1c9 /lib/x86_64-linux-gnu/libc.so.6@2a28a /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-embeddings-4.3.16-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26024


stderr: �[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mAddress already in use ([::1]:32818). Please check that you are not already running a server on this address or specify a different port with --port.�[0m


🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-04-01_16-01-48_423.log"

browser/langchain :: Multi-Turn LLM Test (streaming)

Error: Browser test timed out (60s)

Browser test timed out (60s)
nextjs/google-genai :: Multi-Turn LLM Test (blocking)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span bd1a568c: Attribute 'gen_ai.usage.input_tokens' must exist but is missing
  Span bd1a568c: Attribute 'gen_ai.usage.output_tokens' must exist but is missing
Token usage validation failed:
  input_tokens must exist
  output_tokens must exist
  total_tokens must exist
Input token progression failed: tokens should increase with each turn
gen_ai.response.model is missing (optional but recommended)

✅ Fixed

These tests were failing on main but are now passing:

  • browser/openai :: Multi-Turn LLM Test (blocking)
  • cloudflare/google-genai :: Conversation ID LLM Test (streaming)
  • cloudflare/google-genai :: Conversation ID LLM Test (blocking)
  • cloudflare/langchain :: Basic LLM Test (streaming)
  • cloudflare/langchain :: Basic LLM Test (blocking)
  • cloudflare/langchain :: Basic Error LLM Test (streaming)
  • cloudflare/langchain :: Basic Error LLM Test (blocking)
  • cloudflare/langchain :: Vision LLM Test (streaming)
  • cloudflare/langchain :: Vision LLM Test (blocking)
  • cloudflare/langchain :: Conversation ID LLM Test (blocking)
  • cloudflare/openai :: Basic LLM Test (blocking)
  • cloudflare/openai :: Vision LLM Test (blocking)
  • cloudflare/openai :: Conversation ID LLM Test (blocking)

🆕 New Tests

Passing (71):

  • cloudflare/vercel :: Basic Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Basic Agent Test (streaming, function, anthropic)
  • cloudflare/vercel :: Basic Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Basic Agent Test (blocking, function, anthropic)
  • cloudflare/vercel :: Tool Call Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Tool Call Agent Test (streaming, function, anthropic)
  • cloudflare/vercel :: Tool Call Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Tool Call Agent Test (blocking, function, anthropic)
  • cloudflare/vercel :: Tool Error Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Tool Error Agent Test (streaming, function, anthropic)
  • cloudflare/vercel :: Tool Error Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Tool Error Agent Test (blocking, function, anthropic)
  • cloudflare/vercel :: Vision Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Vision Agent Test (streaming, function, anthropic)
  • cloudflare/vercel :: Vision Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Vision Agent Test (blocking, function, anthropic)
  • cloudflare/vercel :: Long Input Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Long Input Agent Test (streaming, function, anthropic)
  • cloudflare/vercel :: Long Input Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Long Input Agent Test (blocking, function, anthropic)
  • cloudflare/vercel :: Conversation ID Agent Test (streaming, function, openai)
  • cloudflare/vercel :: Conversation ID Agent Test (blocking, function, openai)
  • cloudflare/vercel :: Conversation ID Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Basic Agent Test (streaming, function, openai)
  • nextjs/vercel :: Basic Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Basic Agent Test (blocking, function, openai)
  • nextjs/vercel :: Basic Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Tool Call Agent Test (streaming, function, openai)
  • nextjs/vercel :: Tool Call Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Tool Call Agent Test (blocking, function, openai)
  • nextjs/vercel :: Tool Call Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Tool Error Agent Test (streaming, function, openai)
  • nextjs/vercel :: Tool Error Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Tool Error Agent Test (blocking, function, openai)
  • nextjs/vercel :: Tool Error Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Vision Agent Test (streaming, function, openai)
  • nextjs/vercel :: Vision Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Vision Agent Test (blocking, function, openai)
  • nextjs/vercel :: Vision Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Long Input Agent Test (streaming, function, openai)
  • nextjs/vercel :: Long Input Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Long Input Agent Test (blocking, function, openai)
  • nextjs/vercel :: Long Input Agent Test (blocking, function, anthropic)
  • nextjs/vercel :: Conversation ID Agent Test (streaming, function, openai)
  • nextjs/vercel :: Conversation ID Agent Test (streaming, function, anthropic)
  • nextjs/vercel :: Conversation ID Agent Test (blocking, function, openai)
  • nextjs/vercel :: Conversation ID Agent Test (blocking, function, anthropic)
  • node/vercel :: Basic Agent Test (streaming, function, openai)
  • node/vercel :: Basic Agent Test (streaming, function, anthropic)
  • node/vercel :: Basic Agent Test (blocking, function, openai)
  • node/vercel :: Basic Agent Test (blocking, function, anthropic)
  • node/vercel :: Tool Call Agent Test (streaming, function, openai)
  • node/vercel :: Tool Call Agent Test (streaming, function, anthropic)
  • node/vercel :: Tool Call Agent Test (blocking, function, openai)
  • node/vercel :: Tool Call Agent Test (blocking, function, anthropic)
  • node/vercel :: Tool Error Agent Test (streaming, function, openai)
  • node/vercel :: Tool Error Agent Test (streaming, function, anthropic)
  • node/vercel :: Tool Error Agent Test (blocking, function, openai)
  • node/vercel :: Tool Error Agent Test (blocking, function, anthropic)
  • node/vercel :: Vision Agent Test (streaming, function, openai)
  • node/vercel :: Vision Agent Test (streaming, function, anthropic)
  • node/vercel :: Vision Agent Test (blocking, function, openai)
  • node/vercel :: Vision Agent Test (blocking, function, anthropic)
  • node/vercel :: Long Input Agent Test (streaming, function, openai)
  • node/vercel :: Long Input Agent Test (streaming, function, anthropic)
  • node/vercel :: Long Input Agent Test (blocking, function, openai)
  • node/vercel :: Long Input Agent Test (blocking, function, anthropic)
  • node/vercel :: Conversation ID Agent Test (streaming, function, openai)
  • node/vercel :: Conversation ID Agent Test (streaming, function, anthropic)
  • node/vercel :: Conversation ID Agent Test (blocking, function, openai)
  • node/vercel :: Conversation ID Agent Test (blocking, function, anthropic)

Failing (73):

cloudflare/vercel :: Basic Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a5deff1d: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span a477746b: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Basic Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a7608863: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span b4d292e7: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Basic Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 8d99034e: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 9264abaa: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Basic Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a873a3cd: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 88013a25: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Tool Call Agent Test (streaming, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 9f955d09: Attribute 'description' must equal 'ai.streamText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span a8b78417: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a94e2daf: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a1bd7ec1: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 96b69a7f: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span 8189fd73: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
cloudflare/vercel :: Tool Call Agent Test (streaming, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span ac6d1703: Attribute 'description' must equal 'ai.streamText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span b0a1dbda: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 9b3efdb8: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 88e9a48d: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span b20d7aa7: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span 96238db4: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
cloudflare/vercel :: Tool Call Agent Test (blocking, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span a297411e: Attribute 'description' must equal 'ai.generateText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span affc0c55: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span abb8023e: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 8e51645c: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 991ec422: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span aee68a8d: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
cloudflare/vercel :: Tool Call Agent Test (blocking, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span bbd152b0: Attribute 'description' must equal 'ai.generateText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span bd624178: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 8161d314: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 813e918d: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span a758feac: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span ae9d888b: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
cloudflare/vercel :: Tool Error Agent Test (streaming, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span a2823a74: Attribute 'description' must equal 'ai.streamText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 8e36eb83: Attribute 'description' must equal 'ai.streamText.doStream file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a7394554: Attribute 'description' must equal 'ai.streamText.doStream file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 87734b2e: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
cloudflare/vercel :: Tool Error Agent Test (streaming, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 99d455bb: Attribute 'description' must equal 'ai.streamText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 80c2a194: Attribute 'description' must equal 'ai.streamText.doStream file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span ae989d59: Attribute 'description' must equal 'ai.streamText.doStream file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span 9370e497: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
cloudflare/vercel :: Tool Error Agent Test (blocking, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 8ac78c76: Attribute 'description' must equal 'ai.generateText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 80059f7e: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 9b6aacf0: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span b9007810: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
cloudflare/vercel :: Tool Error Agent Test (blocking, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span bc48a73b: Attribute 'description' must equal 'ai.generateText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span bdab0ac1: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 815f3449: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span 98f7ae0b: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
cloudflare/vercel :: Vision Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 8e7be69f: Attribute 'description' must equal 'ai.streamText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span bec887fb: Attribute 'description' must equal 'ai.streamText.doStream vision_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Vision Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a36a1d07: Attribute 'description' must equal 'ai.streamText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span 9df48a32: Attribute 'description' must equal 'ai.streamText.doStream vision_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Vision Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span ac4944b6: Attribute 'description' must equal 'ai.generateText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span 949b237e: Attribute 'description' must equal 'ai.generateText.doGenerate vision_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Vision Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 88a39785: Attribute 'description' must equal 'ai.generateText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span a620fc7b: Attribute 'description' must equal 'ai.generateText.doGenerate vision_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Long Input Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span aedbfbda: Attribute 'description' must equal 'ai.streamText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span b15d68a4: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a5883abd: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Long Input Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 882cec76: Attribute 'description' must equal 'ai.streamText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span 8d96d4b0: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span a4d21263: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Long Input Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span abeddd2f: Attribute 'description' must equal 'ai.generateText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span 83d60bde: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 84cc0cc3: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Long Input Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span b0fd7748: Attribute 'description' must equal 'ai.generateText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span 9990eab9: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span a2195a1d: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
cloudflare/vercel :: Conversation ID Agent Test (streaming, function, anthropic)

Error: Test execution failed: Wrangler exited with code 1

Test execution failed: Wrangler exited with code 1
stdout: 
 ⛅️ wrangler 4.79.0
───────────────────
Using secrets defined in .dev.vars
Your Worker has access to the following bindings:
Binding                                                                  Resource                  Mode
env.SENTRY_DSN ("http://public@localhost:44927/46433356")                Environment Variable      local
env.RUN_ID ("run-1775058649014-7cjxfnv")                                 Environment Variable      local
env.OPENAI_API_KEY ("(hidden)")                                          Environment Variable      local
env.ANTHROPIC_API_KEY ("(hidden)")                                       Environment Variable      local
env.GOOGLE_GENAI_API_KEY ("(hidden)")                                    Environment Variable      local

*** Fatal uncaught kj::Exception: kj/async-io-unix.c++:945: failed: ::bind(sockfd, &addr.generic, addrlen): Address already in use; toString() = [::1]:32808
stack: /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5100306 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51000d9 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@50fe6cd /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1febd5c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fec6cb /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fed25d /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1feea9c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f3f6e3 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5134385 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51348a8 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132371 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132162 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26d15 /lib/x86_64-linux-gnu/libc.so.6@2a1c9 /lib/x86_64-linux-gnu/libc.so.6@2a28a /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26024


stderr: �[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mAddress already in use ([::1]:32808). Please check that you are not already running a server on this address or specify a different port with --port.�[0m


🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-04-01_15-59-28_014.log"

cloudflare/vercel :: Conversation ID Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span b9ab96a6: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 826b7b85: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span a25cdb9f: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 86fa35e5: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span b79b6709: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a6b12eb0: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 823fff61: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span a3a52a30: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Conversation ID Agent Test (streaming, class, anthropic)

Error: Test execution failed: Wrangler exited with code 1

Test execution failed: Wrangler exited with code 1
stdout: 
 ⛅️ wrangler 4.79.0
───────────────────
Using secrets defined in .dev.vars
Your Worker has access to the following bindings:
Binding                                                                   Resource                  Mode
env.SENTRY_DSN ("http://public@localhost:44927/661511382")                Environment Variable      local
env.RUN_ID ("run-1775058649014-30t3psq")                                  Environment Variable      local
env.OPENAI_API_KEY ("(hidden)")                                           Environment Variable      local
env.ANTHROPIC_API_KEY ("(hidden)")                                        Environment Variable      local
env.GOOGLE_GENAI_API_KEY ("(hidden)")                                     Environment Variable      local

*** Fatal uncaught kj::Exception: kj/async-io-unix.c++:945: failed: ::bind(sockfd, &addr.generic, addrlen): Address already in use; toString() = [::1]:32810
stack: /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5100306 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51000d9 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@50fe6cd /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1febd5c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fec6cb /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fed25d /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1feea9c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f3f6e3 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5134385 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51348a8 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132371 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132162 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26d15 /lib/x86_64-linux-gnu/libc.so.6@2a1c9 /lib/x86_64-linux-gnu/libc.so.6@2a28a /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26024


stderr: �[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mAddress already in use ([::1]:32810). Please check that you are not already running a server on this address or specify a different port with --port.�[0m


🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-04-01_15-59-29_057.log"

cloudflare/vercel :: Conversation ID Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a38d841b: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span a43819b8: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span a458d880: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span bb4bd319: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span bea18edd: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 8b3989ca: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 8439375b: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 8b3d28c1: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
cloudflare/vercel :: Conversation ID Agent Test (blocking, class, anthropic)

Error: Test execution failed: Wrangler exited with code 1

Test execution failed: Wrangler exited with code 1
stdout: 
 ⛅️ wrangler 4.79.0
───────────────────
Using secrets defined in .dev.vars
Your Worker has access to the following bindings:
Binding                                                                    Resource                  Mode
env.SENTRY_DSN ("http://public@localhost:44927/1275706...")                Environment Variable      local
env.RUN_ID ("run-1775058649014-v2mpeu2")                                   Environment Variable      local
env.OPENAI_API_KEY ("(hidden)")                                            Environment Variable      local
env.ANTHROPIC_API_KEY ("(hidden)")                                         Environment Variable      local
env.GOOGLE_GENAI_API_KEY ("(hidden)")                                      Environment Variable      local

*** Fatal uncaught kj::Exception: kj/async-io-unix.c++:945: failed: ::bind(sockfd, &addr.generic, addrlen): Address already in use; toString() = [::1]:32814
stack: /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5100306 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51000d9 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@50fe6cd /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1febd5c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fec6cb /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1fed25d /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1feea9c /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f3f6e3 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5134385 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@51348a8 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132371 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5132162 /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26d15 /lib/x86_64-linux-gnu/libc.so.6@2a1c9 /lib/x86_64-linux-gnu/libc.so.6@2a28a /home/runner/work/testing-ai-sdk-integrations/testing-ai-sdk-integrations/runs/cloudflare/vercel-agents-6.0.116-sentry-latest/node_modules/@cloudflare/workerd-linux-64/bin/workerd@1f26024


stderr: �[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mAddress already in use ([::1]:32814). Please check that you are not already running a server on this address or specify a different port with --port.�[0m


🪵  Logs were written to "/home/runner/.config/.wrangler/logs/wrangler-2026-04-01_15-59-42_334.log"

nextjs/vercel :: Basic Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 969eecc8: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 976658ca: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Basic Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span a7abe53b: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 16a08c13: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Basic Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 9b56c8c5: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span f7e11395: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Basic Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span b42befe9: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 65ad6079: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Tool Call Agent Test (streaming, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 7dc1025c: Attribute 'description' must equal 'ai.streamText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span 2a55fca7: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 7145c57e: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 226ec8ad: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 2395e8bd: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
  Span dc2f98f1: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
nextjs/vercel :: Tool Call Agent Test (streaming, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 08fd9be7: Attribute 'description' must equal 'ai.streamText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span a729bcb3: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span b5146ba8: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 60184dea: Attribute 'description' must equal 'ai.streamText.doStream math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span f923bde7: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span 56b28529: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
nextjs/vercel :: Tool Call Agent Test (blocking, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 77df4551: Attribute 'description' must equal 'ai.generateText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span f1aff992: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 1c1a9f37: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 17962708: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 8450e2ba: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span 0554555f: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
nextjs/vercel :: Tool Call Agent Test (blocking, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span e6b911cd: Attribute 'description' must equal 'ai.generateText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span 73f57003: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span aed8f2cf: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 5e2cc68a: Attribute 'description' must equal 'ai.generateText.doGenerate math_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span f9ce1709: Attribute 'description' must equal 'ai.toolCall math_assistant add' but is 'execute_tool add'
  Span 54203a8e: Attribute 'description' must equal 'ai.toolCall math_assistant multiply' but is 'execute_tool multiply'
nextjs/vercel :: Tool Error Agent Test (streaming, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span df3e4e69: Attribute 'description' must equal 'ai.streamText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 64010809: Attribute 'description' must equal 'ai.streamText.doStream file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 77ba8f0f: Attribute 'description' must equal 'ai.streamText.doStream file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span 5abcb934: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
nextjs/vercel :: Tool Error Agent Test (streaming, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 45a1afff: Attribute 'description' must equal 'ai.streamText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 32172518: Attribute 'description' must equal 'ai.streamText.doStream file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 02d41551: Attribute 'description' must equal 'ai.streamText.doStream file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span f29c3935: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
nextjs/vercel :: Tool Error Agent Test (blocking, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span d9460190: Attribute 'description' must equal 'ai.generateText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span b3a88be8: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 324e3af1: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
Attribute validation failed:
  Span c2ab8cfc: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
nextjs/vercel :: Tool Error Agent Test (blocking, class, anthropic)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span edb12347: Attribute 'description' must equal 'ai.generateText file_assistant file_assistant' but is 'invoke_agent file_assistant'
Attribute validation failed:
  Span 70bfde13: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 1126fd5d: Attribute 'description' must equal 'ai.generateText.doGenerate file_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
Attribute validation failed:
  Span a1f708f4: Attribute 'description' must equal 'ai.toolCall file_assistant read_file' but is 'execute_tool read_file'
nextjs/vercel :: Vision Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span b3064623: Attribute 'description' must equal 'ai.streamText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span 0273abf0: Attribute 'description' must equal 'ai.streamText.doStream vision_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Vision Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span f6ea954b: Attribute 'description' must equal 'ai.streamText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span b0bd6b6d: Attribute 'description' must equal 'ai.streamText.doStream vision_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Vision Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 1925b9f0: Attribute 'description' must equal 'ai.generateText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span a96da904: Attribute 'description' must equal 'ai.generateText.doGenerate vision_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Vision Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span e44d3162: Attribute 'description' must equal 'ai.generateText vision_assistant vision_assistant' but is 'invoke_agent vision_assistant'
Attribute validation failed:
  Span 49ea1e66: Attribute 'description' must equal 'ai.generateText.doGenerate vision_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Long Input Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span f805caad: Attribute 'description' must equal 'ai.streamText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span fdf4f583: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span deed80a4: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Long Input Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 63728bc7: Attribute 'description' must equal 'ai.streamText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span 204a566d: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 18305c4b: Attribute 'description' must equal 'ai.streamText.doStream summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Long Input Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 303a5fdb: Attribute 'description' must equal 'ai.generateText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span d2ee6959: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 6e2f4f18: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Long Input Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 6f5a77b9: Attribute 'description' must equal 'ai.generateText summarizer_assistant summarizer_assistant' but is 'invoke_agent summarizer_assistant'
Attribute validation failed:
  Span 4a72f1d2: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 2c5af62e: Attribute 'description' must equal 'ai.generateText.doGenerate summarizer_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Conversation ID Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 2059dc25: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 4b42c8ca: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 629f33d5: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 8b68fc82: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 6d53c844: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span e7726b9d: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 5b1026f4: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 59d32c00: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Conversation ID Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 260180e9: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span e70c10fb: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 0f352e83: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 6e20d44f: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span c14483d3: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span b488f82a: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 13d36d31: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 4a8e5736: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
nextjs/vercel :: Conversation ID Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 1f275797: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 90196ef6: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span cc904c53: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 64be274c: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span c076f722: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span f5bf08c4: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 21acf3d7: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span 4e866374: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
nextjs/vercel :: Conversation ID Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span fd9727fb: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span 7f4e670a: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span d2ed6cd8: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
  Span b8138152: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 324bbb2a: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 198dac4f: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 9c864231: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
  Span 79c8cc87: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
node/vercel :: Basic Agent Test (streaming, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span d14b2b03: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 07f77563: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
node/vercel :: Basic Agent Test (streaming, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 6c072440: Attribute 'description' must equal 'ai.streamText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span bf27462f: Attribute 'description' must equal 'ai.streamText.doStream helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
node/vercel :: Basic Agent Test (blocking, class, openai)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 4178f113: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span 5d7c9d20: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
node/vercel :: Basic Agent Test (blocking, class, anthropic)

Error: 2 check(s) failed:

2 check(s) failed:
Attribute validation failed:
  Span 53db33db: Attribute 'description' must equal 'ai.generateText helpful_assistant helpful_assistant' but is 'invoke_agent helpful_assistant'
Attribute validation failed:
  Span a7e6ac39: Attribute 'description' must equal 'ai.generateText.doGenerate helpful_assistant claude-haiku-4-5' but is 'generate_content claude-haiku-4-5'
node/vercel :: Tool Call Agent Test (streaming, class, openai)

Error: 3 check(s) failed:

3 check(s) failed:
Attribute validation failed:
  Span 8225cbb9: Attribute 'description' must equal 'ai.streamText math_assistant math_assistant' but is 'invoke_agent math_assistant'
Attribute validation failed:
  Span aa3ac53a: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span fb2f1811: Attribute 'description' must equal 'ai.streamText.doStream math_assistant gpt-4o-mini' but is 'generate_content gpt-4o-mini'
  Span ed66706e: Attribute 'description' must eq...*[Comment body truncated]*

{% if user_content is iterable and user_content is not string %}
const { text } = await agent.generate({
{% if system_content %}
system: "{{ system_content }}",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to https://ai-sdk.dev/docs/reference/ai-sdk-core/tool-loop-agent#parameters there is no system parameter for this methods (similar for agent.stream()). system instructions need to be set using instructions in the ToolLoopAgent constructor. I think this needs to be fixed for the other templates as well

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

system: "{{ system_content }}",
{% endif %}
prompt: "{{ user_content }}",
experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true },
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also needs to be set in the constructor of the agent (same for the other templates): https://ai-sdk.dev/docs/reference/ai-sdk-core/tool-loop-agent#experimental_telemetry

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now as well

try {
{% if agentStyle == "class" %}
// ToolLoopAgent class-based approach
const agent = new ToolLoopAgent({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we are missing the experimental_telemetry option

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed

@constantinius constantinius requested a review from nicohrubec April 1, 2026 15:48
Comment on lines +145 to +155
messages: [
{
role: "user",
content: {{ renderVercelContent(user_content) }},
},
],
{% if agent and agent.tools and agent.tools.length > 0 %}
tools,
stopWhen: stepCountIs(10),
{% endif %}
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The streamText calls in the function-based streaming path for the node template are missing the experimental_telemetry parameter, which prevents telemetry capture for these operations.
Severity: MEDIUM

Suggested Fix

Add the experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true } parameter to the streamText calls within the function-based streaming path in src/runner/templates/agents/node/vercel/template.njk to match the implementation in the generateText calls and other templates.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/runner/templates/agents/node/vercel/template.njk#L140-L155

Potential issue: In the node agent template, the `streamText` function calls for the
function-based streaming path are missing the `experimental_telemetry` parameter. This
omission prevents Sentry's AI SDK from capturing telemetry spans for these specific LLM
operations. This is inconsistent with the blocking `generateText` calls in the same file
and with the equivalent `streamText` calls in the Cloudflare and NextJS templates, all
of which include this parameter. The consequence is a loss of observability for
streaming operations on the node platform when using the "function" agent style, which
will cause span validation checks to fail.

@constantinius constantinius merged commit f4feb99 into main Apr 1, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants