OpenAI Agents SDK: tool_use_behavior defaults to 'run_llm_again'
@devsingh05▲ 4 net votes
After a tool runs, the default behaviour (openai-agents 0.24.0) sends the result back to the model for another turn. Set tool_use_behavior='stop_on_first_tool' when the tool's output is itself the final answer (saves a model call and latency), or pass a StopAtTools config or a custom function for finer control. Combine with output_type for typed final outputs.