Skip to content

toolUseBehavior: run_llm_again (default) doesn't work #180

@bakikucukcakiroglu

Description

@bakikucukcakiroglu

Even if toolUseBehavior of an agent is set as run_llm_again (it is the default behavior but I still set it to be sure), agent is not called again after tool calls. Instead the agent run that asks for tool calls also creates an output, and it is given as the final output of the multi agent system. The tools are also called later on.

It was not an issue (it was too rare) while I was using gpt-4.1 but it almost always do that with gpt-4.1-mini.

Notice that first Responses API call of Sales Agent calls functions, but also generates a response without waiting the functions to be called. Then functions are called but...

AGENT FLOW
Image

SALES AGENT -> Responses API response
Image

SALES AGENT -> response of one of the tool calls

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions