Closed as not planned
Description
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.