diff --git a/src/agents/run_internal/tool_actions.py b/src/agents/run_internal/tool_actions.py index 005a0b163f..d7b93d3e9d 100644 --- a/src/agents/run_internal/tool_actions.py +++ b/src/agents/run_internal/tool_actions.py @@ -169,7 +169,11 @@ async def _run_action(span: Any | None) -> RunItem: "image_url": image_url, }, type="computer_call_output", - acknowledged_safety_checks=acknowledged_safety_checks, + **( + {"acknowledged_safety_checks": acknowledged_safety_checks} + if acknowledged_safety_checks is not None + else {} + ), ), )