Open
Description
The code performs the same isinstance(output, ResponseFunctionToolCall) check twice. This is redundant and may confuse future maintainers or introduce unnecessary complexity.
openai-agents-python/src/agents/_run_impl.py
Line 378 in f976349
elif not isinstance(output, ResponseFunctionToolCall):
logger.warning(f"Unexpected output type, ignoring: {type(output)}")
continue
# At this point we know it's a function tool call
if not isinstance(output, ResponseFunctionToolCall):
continue
Metadata
Metadata
Assignees
Labels
No labels