File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ async def retrieve_agent_response_generator(
117117 turn_summary ,
118118 )
119119
120- agent = build_agent (context .client , responses_params )
120+ agent = build_agent (context .client , responses_params , configuration . skills )
121121
122122 return (
123123 agent_response_generator (
Original file line number Diff line number Diff line change @@ -203,6 +203,14 @@ def patch_recording_metrics_fixture(mocker: MockerFixture) -> None:
203203 mocker .patch ("utils.agents.query.recording.record_llm_call" )
204204
205205
206+ @pytest .fixture (name = "patch_streaming_configuration" )
207+ def patch_streaming_configuration_fixture (mocker : MockerFixture ) -> None :
208+ """Patch streaming module configuration for isolated agent streaming tests."""
209+ mock_config = mocker .MagicMock ()
210+ mock_config .skills = None
211+ mocker .patch ("utils.agents.streaming.configuration" , mock_config )
212+
213+
206214@pytest .fixture (autouse = True , name = "stream_interrupt_mocks" )
207215def stream_interrupt_mocks_fixture (mocker : MockerFixture ) -> dict [str , Any ]:
208216 """Patch stream interrupt registry and deregister for wrapper tests."""
@@ -479,6 +487,7 @@ def test_part_end_native_tool_call_returns_none_when_skipped(
479487 assert not turn_state .turn_summary .tool_calls
480488
481489
490+ @pytest .mark .usefixtures ("patch_streaming_configuration" )
482491class TestRetrieveAgentResponseGenerator :
483492 """Tests for retrieve_agent_response_generator."""
484493
You can’t perform that action at this time.
0 commit comments