Skip to content

Issue with parallel tool calls with same name #452

@akshaylive

Description

@akshaylive

Here's a gnarly bug/issue..

Scenario:

  1. LLM invokes multiple instances of the same tool, such as ["Web Search", "Web Search"]
  2. This line schedules multiple tool nodes to run in parallel.
  3. Each tool node picks up the first matching tool call and here from the state -- this means that both of the web search tools will execute the first tool call.
  4. The fix is to use the langgraph send pattern here. Here's an old PR but you can use the same patterns here! 🙂

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