diff --git a/src/agents/extensions/handoff_filters.py b/src/agents/extensions/handoff_filters.py index f24dd1658c..2986685d5a 100644 --- a/src/agents/extensions/handoff_filters.py +++ b/src/agents/extensions/handoff_filters.py @@ -104,6 +104,7 @@ def _remove_tool_types_from_input( "apply_patch_call_output", "custom_tool_call", "custom_tool_call_output", + "hosted_tool_call", ] filtered_items: list[TResponseInputItem] = [] diff --git a/tests/test_extension_filters.py b/tests/test_extension_filters.py index a4b95f792a..113340c1f4 100644 --- a/tests/test_extension_filters.py +++ b/tests/test_extension_filters.py @@ -1130,6 +1130,7 @@ def test_removes_hosted_tool_types_from_input_history() -> None: "apply_patch_call_output", "custom_tool_call", "custom_tool_call_output", + "hosted_tool_call", ] input_items: list[TResponseInputItem] = [_get_message_input_item("Hello")] for t in hosted_types: