Skip to content

[BUG] Tool invocation occurs twice in version 0.177.0 #3462

@hkjxflb0

Description

@hkjxflb0

Description

After upgrading from version 0.165.1 to 0.177.0, I observed that tools are being invoked exactly twice on every call initiated by the LLM. In the earlier version (0.165.1), the same architecture executed tools correctly with a single invocation.

This issue introduces redundant executions, leading to duplicate outputs and unnecessary latency. The duplicate calls occur within a few milliseconds of each other, which strongly suggests an internal execution or callback duplication in the updated release.

Steps to Reproduce

Steps to Reproduce:

  1. Set up a multi-crew architecture with agents configured to call external tools.

  2. Register at least 4 tools in the environment.

  3. Trigger tool execution through an agent.

  4. Observe that the tool is invoked twice in quick succession (within milliseconds).

Expected behavior

Each tool call from the LLM should result in exactly one execution.

In version 0.177.0, every tool call is executed twice.

In version 0.165.0, the same architecture executes correctly with a single invocation.

Screenshots/Code snippets

Can't share project screenshot or code

Operating System

Windows 11

Python Version

3.11

crewAI Version

Issue in 0.177.0, currently using 0.165.1

crewAI Tools Version

0.62.3

Virtual Environment

Venv

Evidence

Can't share project logs or screenshots

Possible Solution

None

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions