@@ -82,6 +82,7 @@ def minimal_params_fixture(self, mocker: MockerFixture) -> object:
8282 params .parallel_tool_calls = None
8383 params .extra_headers = None
8484 params .store = False
85+ params .tools = None
8586 params .previous_response_id = None
8687 return params
8788
@@ -138,7 +139,6 @@ def test_extra_body_from_lls_fields(self, mocker: MockerFixture) -> None:
138139 "model" : "test/model" ,
139140 "conversation" : "conv-123" ,
140141 "max_infer_iters" : 5 ,
141- "tools" : [{"type" : "function" }],
142142 "tool_choice" : "auto" ,
143143 }
144144 params .max_output_tokens = None
@@ -147,14 +147,15 @@ def test_extra_body_from_lls_fields(self, mocker: MockerFixture) -> None:
147147 params .extra_headers = None
148148 params .store = False
149149 params .previous_response_id = None
150+ params .tools = [{"type" : "function" }]
150151
151152 settings = _model_settings_from_responses_params (params )
152153
153154 assert "extra_body" in settings
154155 assert settings ["extra_body" ]["conversation" ] == "conv-123"
155156 assert settings ["extra_body" ]["max_infer_iters" ] == 5
156- assert settings ["extra_body" ]["tools" ] == [{"type" : "function" }]
157157 assert settings ["extra_body" ]["tool_choice" ] == "auto"
158+ assert settings ["openai_native_tools" ] == [{"type" : "function" }]
158159
159160 def test_extra_body_only_includes_known_fields (self , mocker : MockerFixture ) -> None :
160161 """Test that extra_body only includes fields in _LLS_RESPONSES_EXTRA_FIELDS."""
@@ -189,7 +190,6 @@ def test_contains_expected_fields(self) -> None:
189190 expected = {
190191 "conversation" ,
191192 "max_infer_iters" ,
192- "tools" ,
193193 "tool_choice" ,
194194 "include" ,
195195 "text" ,
0 commit comments