Skip to content

Commit 270c3df

Browse files
committed
Update cassette
1 parent 27ca658 commit 270c3df

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

tests/cassettes/test_temporal/test_temporal_agent_with_model_retry.yaml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interactions:
88
connection:
99
- keep-alive
1010
content-length:
11-
- '339'
11+
- '347'
1212
content-type:
1313
- application/json
1414
host:
@@ -24,7 +24,7 @@ interactions:
2424
tools:
2525
- function:
2626
description: ''
27-
name: get_weather
27+
name: get_weather_in_city
2828
parameters:
2929
additionalProperties: false
3030
properties:
@@ -45,13 +45,13 @@ interactions:
4545
connection:
4646
- keep-alive
4747
content-length:
48-
- '1078'
48+
- '1086'
4949
content-type:
5050
- application/json
5151
openai-organization:
5252
- pydantic-28gund
5353
openai-processing-ms:
54-
- '396'
54+
- '327'
5555
openai-project:
5656
- proj_dKobscVY9YJxeEaDJen54e3d
5757
openai-version:
@@ -73,27 +73,27 @@ interactions:
7373
tool_calls:
7474
- function:
7575
arguments: '{"city":"CDMX"}'
76-
name: get_weather
77-
id: call_vU9I59R4bT9peDlJ2QRNKv6H
76+
name: get_weather_in_city
77+
id: call_fFAB8MNL3tUdfNIIdsIJTo0H
7878
type: function
79-
created: 1756419359
80-
id: chatcmpl-C9fCRXuCibHEK8A1o8Q1flCXYjWyW
79+
created: 1756423190
80+
id: chatcmpl-C9gCExiXILzHBQ4ZuERdiURkHUZZM
8181
model: gpt-4o-2024-08-06
8282
object: chat.completion
8383
service_tier: default
84-
system_fingerprint: fp_46bff0e0c8
84+
system_fingerprint: fp_ea40d5097a
8585
usage:
86-
completion_tokens: 15
86+
completion_tokens: 17
8787
completion_tokens_details:
8888
accepted_prediction_tokens: 0
8989
audio_tokens: 0
9090
reasoning_tokens: 0
9191
rejected_prediction_tokens: 0
92-
prompt_tokens: 45
92+
prompt_tokens: 47
9393
prompt_tokens_details:
9494
audio_tokens: 0
9595
cached_tokens: 0
96-
total_tokens: 60
96+
total_tokens: 64
9797
status:
9898
code: 200
9999
message: OK
@@ -106,12 +106,12 @@ interactions:
106106
connection:
107107
- keep-alive
108108
content-length:
109-
- '649'
109+
- '665'
110110
content-type:
111111
- application/json
112112
cookie:
113-
- __cf_bm=ot3nMlqXz77rQxZ9S4.S.AUbVFo.b5GJTAC0ISLuy_M-1756419359-1.0.1.1-bGLcLWDJbNCcvkigOOq2jGgrQzwR6OnE3EQR7EnX0sYE..Q2prjYTmBqNKiUMrC9MDvTgSSvqhePGHUD1Po5L9Ba15pMVYlC1Nb0SEUbRHc;
114-
_cfuvid=9q.rPSwgscH0zMWh.QGh89MZhGfvSfy7hb.tXaTvnUI-1756419359762-0.0.1.1-604800000
113+
- __cf_bm=yUpeQm6kQWb.kRgbX0F391IMtd8nqGUrSigYrEakdXQ-1756423190-1.0.1.1-FPxZURmrG14EfyWc8ZgNIHTHoWxQ3IPV9X4uCZ2O_z1KiiSc66VTYHq86EbI5aUnd26QXGFdwTsriLpMHbGRxfqlOj.DSK3daVg9q_XBQDE;
114+
_cfuvid=t8Kvct8UEUS4P6_7AIQ7_ayX0J6QaCWrtHqGpTB5uMo-1756423190751-0.0.1.1-604800000
115115
host:
116116
- api.openai.com
117117
method: POST
@@ -124,22 +124,22 @@ interactions:
124124
tool_calls:
125125
- function:
126126
arguments: '{"city":"CDMX"}'
127-
name: get_weather
128-
id: call_vU9I59R4bT9peDlJ2QRNKv6H
127+
name: get_weather_in_city
128+
id: call_fFAB8MNL3tUdfNIIdsIJTo0H
129129
type: function
130130
- content: |-
131131
Did you mean Mexico City?
132132
133133
Fix the errors and try again.
134134
role: tool
135-
tool_call_id: call_vU9I59R4bT9peDlJ2QRNKv6H
135+
tool_call_id: call_fFAB8MNL3tUdfNIIdsIJTo0H
136136
model: gpt-4o
137137
stream: false
138138
tool_choice: auto
139139
tools:
140140
- function:
141141
description: ''
142-
name: get_weather
142+
name: get_weather_in_city
143143
parameters:
144144
additionalProperties: false
145145
properties:
@@ -160,13 +160,13 @@ interactions:
160160
connection:
161161
- keep-alive
162162
content-length:
163-
- '1085'
163+
- '1094'
164164
content-type:
165165
- application/json
166166
openai-organization:
167167
- pydantic-28gund
168168
openai-processing-ms:
169-
- '998'
169+
- '352'
170170
openai-project:
171171
- proj_dKobscVY9YJxeEaDJen54e3d
172172
openai-version:
@@ -188,27 +188,27 @@ interactions:
188188
tool_calls:
189189
- function:
190190
arguments: '{"city":"Mexico City"}'
191-
name: get_weather
192-
id: call_NNc9A36fd5k4TMTaYl6sJE6Y
191+
name: get_weather_in_city
192+
id: call_hLYHO5lK5lmiukTZv6VQzz3x
193193
type: function
194-
created: 1756419360
195-
id: chatcmpl-C9fCSs0tGInJt5bGwDNPjbGcncKmo
194+
created: 1756423191
195+
id: chatcmpl-C9gCF2OpzQojDQTsp31IsAagNqEC6
196196
model: gpt-4o-2024-08-06
197197
object: chat.completion
198198
service_tier: default
199-
system_fingerprint: fp_80956533cb
199+
system_fingerprint: fp_ea40d5097a
200200
usage:
201-
completion_tokens: 15
201+
completion_tokens: 17
202202
completion_tokens_details:
203203
accepted_prediction_tokens: 0
204204
audio_tokens: 0
205205
reasoning_tokens: 0
206206
rejected_prediction_tokens: 0
207-
prompt_tokens: 81
207+
prompt_tokens: 87
208208
prompt_tokens_details:
209209
audio_tokens: 0
210210
cached_tokens: 0
211-
total_tokens: 96
211+
total_tokens: 104
212212
status:
213213
code: 200
214214
message: OK
@@ -221,12 +221,12 @@ interactions:
221221
connection:
222222
- keep-alive
223223
content-length:
224-
- '913'
224+
- '937'
225225
content-type:
226226
- application/json
227227
cookie:
228-
- __cf_bm=ot3nMlqXz77rQxZ9S4.S.AUbVFo.b5GJTAC0ISLuy_M-1756419359-1.0.1.1-bGLcLWDJbNCcvkigOOq2jGgrQzwR6OnE3EQR7EnX0sYE..Q2prjYTmBqNKiUMrC9MDvTgSSvqhePGHUD1Po5L9Ba15pMVYlC1Nb0SEUbRHc;
229-
_cfuvid=9q.rPSwgscH0zMWh.QGh89MZhGfvSfy7hb.tXaTvnUI-1756419359762-0.0.1.1-604800000
228+
- __cf_bm=yUpeQm6kQWb.kRgbX0F391IMtd8nqGUrSigYrEakdXQ-1756423190-1.0.1.1-FPxZURmrG14EfyWc8ZgNIHTHoWxQ3IPV9X4uCZ2O_z1KiiSc66VTYHq86EbI5aUnd26QXGFdwTsriLpMHbGRxfqlOj.DSK3daVg9q_XBQDE;
229+
_cfuvid=t8Kvct8UEUS4P6_7AIQ7_ayX0J6QaCWrtHqGpTB5uMo-1756423190751-0.0.1.1-604800000
230230
host:
231231
- api.openai.com
232232
method: POST
@@ -239,33 +239,33 @@ interactions:
239239
tool_calls:
240240
- function:
241241
arguments: '{"city":"CDMX"}'
242-
name: get_weather
243-
id: call_vU9I59R4bT9peDlJ2QRNKv6H
242+
name: get_weather_in_city
243+
id: call_fFAB8MNL3tUdfNIIdsIJTo0H
244244
type: function
245245
- content: |-
246246
Did you mean Mexico City?
247247
248248
Fix the errors and try again.
249249
role: tool
250-
tool_call_id: call_vU9I59R4bT9peDlJ2QRNKv6H
250+
tool_call_id: call_fFAB8MNL3tUdfNIIdsIJTo0H
251251
- content: null
252252
role: assistant
253253
tool_calls:
254254
- function:
255255
arguments: '{"city":"Mexico City"}'
256-
name: get_weather
257-
id: call_NNc9A36fd5k4TMTaYl6sJE6Y
256+
name: get_weather_in_city
257+
id: call_hLYHO5lK5lmiukTZv6VQzz3x
258258
type: function
259259
- content: sunny
260260
role: tool
261-
tool_call_id: call_NNc9A36fd5k4TMTaYl6sJE6Y
261+
tool_call_id: call_hLYHO5lK5lmiukTZv6VQzz3x
262262
model: gpt-4o
263263
stream: false
264264
tool_choice: auto
265265
tools:
266266
- function:
267267
description: ''
268-
name: get_weather
268+
name: get_weather_in_city
269269
parameters:
270270
additionalProperties: false
271271
properties:
@@ -292,7 +292,7 @@ interactions:
292292
openai-organization:
293293
- pydantic-28gund
294294
openai-processing-ms:
295-
- '781'
295+
- '312'
296296
openai-project:
297297
- proj_dKobscVY9YJxeEaDJen54e3d
298298
openai-version:
@@ -311,24 +311,24 @@ interactions:
311311
content: The weather in Mexico City is currently sunny.
312312
refusal: null
313313
role: assistant
314-
created: 1756419361
315-
id: chatcmpl-C9fCT3ZeTxw6IZ3zEwxpCx22RmjSo
314+
created: 1756423192
315+
id: chatcmpl-C9gCGg6DDdUlo7CuS04nK9k6dnkZG
316316
model: gpt-4o-2024-08-06
317317
object: chat.completion
318318
service_tier: default
319-
system_fingerprint: fp_80956533cb
319+
system_fingerprint: fp_ea40d5097a
320320
usage:
321321
completion_tokens: 10
322322
completion_tokens_details:
323323
accepted_prediction_tokens: 0
324324
audio_tokens: 0
325325
reasoning_tokens: 0
326326
rejected_prediction_tokens: 0
327-
prompt_tokens: 106
327+
prompt_tokens: 116
328328
prompt_tokens_details:
329329
audio_tokens: 0
330330
cached_tokens: 0
331-
total_tokens: 116
331+
total_tokens: 126
332332
status:
333333
code: 200
334334
message: OK

tests/test_temporal.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,14 +1776,14 @@ async def test_temporal_agent_with_model_retry(allow_model_requests: None, clien
17761776
ModelResponse(
17771777
parts=[
17781778
ToolCallPart(
1779-
tool_name='get_weather',
1779+
tool_name='get_weather_in_city',
17801780
args='{"city":"CDMX"}',
17811781
tool_call_id=IsStr(),
17821782
)
17831783
],
17841784
usage=RequestUsage(
1785-
input_tokens=45,
1786-
output_tokens=15,
1785+
input_tokens=47,
1786+
output_tokens=17,
17871787
details={
17881788
'accepted_prediction_tokens': 0,
17891789
'audio_tokens': 0,
@@ -1800,7 +1800,7 @@ async def test_temporal_agent_with_model_retry(allow_model_requests: None, clien
18001800
parts=[
18011801
RetryPromptPart(
18021802
content='Did you mean Mexico City?',
1803-
tool_name='get_weather',
1803+
tool_name='get_weather_in_city',
18041804
tool_call_id=IsStr(),
18051805
timestamp=IsDatetime(),
18061806
)
@@ -1809,14 +1809,14 @@ async def test_temporal_agent_with_model_retry(allow_model_requests: None, clien
18091809
ModelResponse(
18101810
parts=[
18111811
ToolCallPart(
1812-
tool_name='get_weather',
1812+
tool_name='get_weather_in_city',
18131813
args='{"city":"Mexico City"}',
18141814
tool_call_id=IsStr(),
18151815
)
18161816
],
18171817
usage=RequestUsage(
1818-
input_tokens=81,
1819-
output_tokens=15,
1818+
input_tokens=87,
1819+
output_tokens=17,
18201820
details={
18211821
'accepted_prediction_tokens': 0,
18221822
'audio_tokens': 0,
@@ -1832,7 +1832,7 @@ async def test_temporal_agent_with_model_retry(allow_model_requests: None, clien
18321832
ModelRequest(
18331833
parts=[
18341834
ToolReturnPart(
1835-
tool_name='get_weather',
1835+
tool_name='get_weather_in_city',
18361836
content='sunny',
18371837
tool_call_id=IsStr(),
18381838
timestamp=IsDatetime(),
@@ -1842,7 +1842,7 @@ async def test_temporal_agent_with_model_retry(allow_model_requests: None, clien
18421842
ModelResponse(
18431843
parts=[TextPart(content='The weather in Mexico City is currently sunny.')],
18441844
usage=RequestUsage(
1845-
input_tokens=106,
1845+
input_tokens=116,
18461846
output_tokens=10,
18471847
details={
18481848
'accepted_prediction_tokens': 0,

0 commit comments

Comments
 (0)