Skip to content

bedrock toolUseId is being hallucinated #72

@double16

Description

@double16

What happened?

Using bedrock models:

  "modelId": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
  "embeddingModel": "amazon.titan-embed-text-v2:0",
  "evaluationModel": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
  "swarmModel": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",

Error:

TERMINATED: An error occurred (ValidationException) when calling the ConverseStream operation: The toolUse blocks at messages.2.content contain duplicate Ids: http_request

Events:

CYBER_EVENT{"type": "http_request_start", "method": "GET", "url": "CENSORED", "id": "OP_20260129_223235_11", "timestamp": "2026-01-29T22:32:51.922484"}CYBER_EVENT_END 

CYBER_EVENT{"type": "http_request_start", "method": "GET", "url": "CENSORED", "id": "OP_20260129_223235_13", "timestamp": "2026-01-29T22:32:52.382367"}CYBER_EVENT_END 

CYBER_EVENT{"type": "tool_start", "tool_name": "http_request", "tool_id": "tooluse_BBO78QZ2Q-mQxGBOlx0zFg", "tool_input": {"method": "GET", "url": "CENSORED", "metrics": true}, "id": "OP_20260129_223235_18", "timestamp": "2026-01-29T22:32:52.586825"}CYBER_EVENT_END 

CYBER_EVENT{"type": "tool_start", "tool_name": "http_request", "tool_id": "tooluse_vxH1v89tTq2vHkk4_MMA_Q", "tool_input": {"method": "GET", "url": "CENSORED", "metrics": true}, "id": "OP_20260129_223235_20", "timestamp": "2026-01-29T22:32:52.603814"}CYBER_EVENT_END 

CYBER_EVENT{"type": "tool_end", "tool_name": "http_request", "tool_id": "tooluse_vxH1v89tTq2vHkk4_MMA_Q", "success": true, "id": "OP_20260129_223235_36", "timestamp": "2026-01-29T22:34:05.210966"}CYBER_EVENT_END

How to reproduce

Running with multiple URLs in the objective seems to cause the model to invoke concurrent http_request tools, resulting in the error.

How are you running it?

Docker Compose

Provider and Model

us.anthropic.claude-sonnet-4-5-20250929-v1:0

Operating System

No response

Python Version

No response

Node Version (if using React UI)

No response

Cyber-AutoAgent Version

0.5.0

Error logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions