@@ -39,7 +39,7 @@ def test_empty_response():
39
39
response = ModelResponse (
40
40
output = [],
41
41
usage = Usage (),
42
- referenceable_id = None ,
42
+ response_id = None ,
43
43
)
44
44
45
45
result = RunImpl .process_model_response (
@@ -58,7 +58,7 @@ def test_no_tool_calls():
58
58
response = ModelResponse (
59
59
output = [get_text_message ("Hello, world!" )],
60
60
usage = Usage (),
61
- referenceable_id = None ,
61
+ response_id = None ,
62
62
)
63
63
result = RunImpl .process_model_response (
64
64
agent = agent , response = response , output_schema = None , handoffs = [], all_tools = []
@@ -76,7 +76,7 @@ async def test_single_tool_call():
76
76
get_function_tool_call ("test" , "" ),
77
77
],
78
78
usage = Usage (),
79
- referenceable_id = None ,
79
+ response_id = None ,
80
80
)
81
81
result = RunImpl .process_model_response (
82
82
agent = agent ,
@@ -102,7 +102,7 @@ async def test_missing_tool_call_raises_error():
102
102
get_function_tool_call ("missing" , "" ),
103
103
],
104
104
usage = Usage (),
105
- referenceable_id = None ,
105
+ response_id = None ,
106
106
)
107
107
108
108
with pytest .raises (ModelBehaviorError ):
@@ -132,7 +132,7 @@ async def test_multiple_tool_calls():
132
132
get_function_tool_call ("test_2" , "xyz" ),
133
133
],
134
134
usage = Usage (),
135
- referenceable_id = None ,
135
+ response_id = None ,
136
136
)
137
137
138
138
result = RunImpl .process_model_response (
@@ -162,7 +162,7 @@ async def test_handoffs_parsed_correctly():
162
162
response = ModelResponse (
163
163
output = [get_text_message ("Hello, world!" )],
164
164
usage = Usage (),
165
- referenceable_id = None ,
165
+ response_id = None ,
166
166
)
167
167
result = RunImpl .process_model_response (
168
168
agent = agent_3 ,
@@ -176,7 +176,7 @@ async def test_handoffs_parsed_correctly():
176
176
response = ModelResponse (
177
177
output = [get_text_message ("Hello, world!" ), get_handoff_tool_call (agent_1 )],
178
178
usage = Usage (),
179
- referenceable_id = None ,
179
+ response_id = None ,
180
180
)
181
181
result = RunImpl .process_model_response (
182
182
agent = agent_3 ,
@@ -205,7 +205,7 @@ async def test_missing_handoff_fails():
205
205
response = ModelResponse (
206
206
output = [get_text_message ("Hello, world!" ), get_handoff_tool_call (agent_2 )],
207
207
usage = Usage (),
208
- referenceable_id = None ,
208
+ response_id = None ,
209
209
)
210
210
with pytest .raises (ModelBehaviorError ):
211
211
RunImpl .process_model_response (
@@ -229,7 +229,7 @@ async def test_multiple_handoffs_doesnt_error():
229
229
get_handoff_tool_call (agent_2 ),
230
230
],
231
231
usage = Usage (),
232
- referenceable_id = None ,
232
+ response_id = None ,
233
233
)
234
234
result = RunImpl .process_model_response (
235
235
agent = agent_3 ,
@@ -254,7 +254,7 @@ async def test_final_output_parsed_correctly():
254
254
get_final_output_message (Foo (bar = "123" ).model_dump_json ()),
255
255
],
256
256
usage = Usage (),
257
- referenceable_id = None ,
257
+ response_id = None ,
258
258
)
259
259
260
260
RunImpl .process_model_response (
@@ -281,7 +281,7 @@ async def test_file_search_tool_call_parsed_correctly():
281
281
response = ModelResponse (
282
282
output = [get_text_message ("hello" ), file_search_call ],
283
283
usage = Usage (),
284
- referenceable_id = None ,
284
+ response_id = None ,
285
285
)
286
286
result = RunImpl .process_model_response (
287
287
agent = agent ,
@@ -306,7 +306,7 @@ async def test_function_web_search_tool_call_parsed_correctly():
306
306
response = ModelResponse (
307
307
output = [get_text_message ("hello" ), web_search_call ],
308
308
usage = Usage (),
309
- referenceable_id = None ,
309
+ response_id = None ,
310
310
)
311
311
result = RunImpl .process_model_response (
312
312
agent = agent ,
@@ -333,7 +333,7 @@ async def test_reasoning_item_parsed_correctly():
333
333
response = ModelResponse (
334
334
output = [reasoning ],
335
335
usage = Usage (),
336
- referenceable_id = None ,
336
+ response_id = None ,
337
337
)
338
338
result = RunImpl .process_model_response (
339
339
agent = Agent (name = "test" ),
@@ -401,7 +401,7 @@ async def test_computer_tool_call_without_computer_tool_raises_error():
401
401
response = ModelResponse (
402
402
output = [computer_call ],
403
403
usage = Usage (),
404
- referenceable_id = None ,
404
+ response_id = None ,
405
405
)
406
406
with pytest .raises (ModelBehaviorError ):
407
407
RunImpl .process_model_response (
@@ -430,7 +430,7 @@ async def test_computer_tool_call_with_computer_tool_parsed_correctly():
430
430
response = ModelResponse (
431
431
output = [computer_call ],
432
432
usage = Usage (),
433
- referenceable_id = None ,
433
+ response_id = None ,
434
434
)
435
435
result = RunImpl .process_model_response (
436
436
agent = agent ,
@@ -460,7 +460,7 @@ async def test_tool_and_handoff_parsed_correctly():
460
460
get_handoff_tool_call (agent_1 ),
461
461
],
462
462
usage = Usage (),
463
- referenceable_id = None ,
463
+ response_id = None ,
464
464
)
465
465
466
466
result = RunImpl .process_model_response (
0 commit comments