Skip to content

Error: tool_use ids must be unique when doing parallel requests #53

@bryansusu

Description

@bryansusu

Hi,

I'm getting the following error when using the official Anthropic SDK together with the Microsoft Agent Framework:

{"type":"error","error":{"type":"invalid_request_error","message":"messages.15.content.2: tool_use ids must be unique"}}

This only seems to happen when the agent triggers multiple tool calls in parallel. I don't manually set tool IDs.

Expected: the SDK should either accept parallel tool calls or auto-ensure unique IDs instead of failing.

Could you clarify how tool IDs should be handled, and whether this is a bug or expected behavior?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions