@@ -7578,7 +7578,7 @@ def send_email(to: str) -> str:
75787578
75797579 client = OpenAIChatClient (model = "test-model" , api_key = "test-key" )
75807580 client .function_invocation_configuration ["max_iterations" ] = 4
7581- options : dict [ str , Any ] = {"continuation_token" : {"response_id" : "resp_bg" }, "tools" : [send_email ]}
7581+ options : OpenAIChatOptions [ None ] = {"continuation_token" : {"response_id" : "resp_bg" }, "tools" : [send_email ]}
75827582 with (
75837583 patch .object (client .client .responses .with_raw_response , "retrieve" , new = retrieve ),
75847584 patch .object (client .client .responses .with_raw_response , "create" , new = create ),
@@ -7591,6 +7591,7 @@ def send_email(to: str) -> str:
75917591 assert executions == ["bob" ]
75927592 assert retrieve .await_count == 1
75937593 assert create .await_count == 1
7594+ assert create .await_args is not None
75947595 assert create .await_args .kwargs .get ("previous_response_id" ) == "resp_bg"
75957596 assert final .text == "Email sent."
75967597
@@ -7649,7 +7650,7 @@ def send_email(to: str) -> str:
76497650
76507651 client = OpenAIChatClient (model = "test-model" , api_key = "test-key" , middleware = [ReplaceOptions ()])
76517652 client .function_invocation_configuration ["max_iterations" ] = 4
7652- options : dict [ str , Any ] = {"continuation_token" : {"response_id" : "resp_bg" }, "tools" : [send_email ]}
7653+ options : OpenAIChatOptions [ None ] = {"continuation_token" : {"response_id" : "resp_bg" }, "tools" : [send_email ]}
76537654 with (
76547655 patch .object (client .client .responses .with_raw_response , "retrieve" , new = retrieve ),
76557656 patch .object (client .client .responses .with_raw_response , "create" , new = create ),
0 commit comments