Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Does StopAtTools returns tool result directly to user instead of to LLM? #632

Closed as not planned
@xinwo

Description

@xinwo

Please read this first

  • Have you read the docs?Agents SDK docs
  • Have you searched for related issues? Others may have had similar requests

Question

From the document,
A list of tool names, any of which will stop the agent from running further.,
and comment of tool_use_behavior in src/agents/agent.py,

    - A list of tool names: The agent will stop running if any of the tools in the list are called.
        The final output will be the output of the first matching tool call. The LLM does not
        process the result of the tool call.

it seems result of tool in StopAtTools won't be sent to LLM, but return to user directly.

I tried it and I think StopAtTools is configured correctly, because it enters
https://github.com/openai/openai-agents-python/blob/main/src/agents/_run_impl.py#L760-L761
but still, the result is sent to LLM but not directly to user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions