17
17
18
18
from pydantic import StrictBool
19
19
from ap_client .models .run import Run
20
- from ap_client .models .run_create import RunCreate
21
20
from ap_client .models .run_search_request import RunSearchRequest
21
+ from ap_client .models .run_stream import RunStream
22
22
from ap_client .models .run_wait_response import RunWaitResponse
23
23
24
24
from ap_client .api_client import ApiClient , RequestSerialized
@@ -332,7 +332,7 @@ def _cancel_run_serialize(
332
332
@validate_call
333
333
def create_run (
334
334
self ,
335
- run_create : RunCreate ,
335
+ run_stream : RunStream ,
336
336
_request_timeout : Union [
337
337
None ,
338
338
Annotated [StrictFloat , Field (gt = 0 )],
@@ -349,8 +349,8 @@ def create_run(
349
349
350
350
Create a run in a new thread, return the run ID immediately. Don't wait for the final run output.
351
351
352
- :param run_create : (required)
353
- :type run_create: RunCreate
352
+ :param run_stream : (required)
353
+ :type run_stream: RunStream
354
354
:param _request_timeout: timeout setting for this request. If one
355
355
number provided, it will be total request
356
356
timeout. It can also be a pair (tuple) of
@@ -374,7 +374,7 @@ def create_run(
374
374
""" # noqa: E501
375
375
376
376
_param = self ._create_run_serialize (
377
- run_create = run_create ,
377
+ run_stream = run_stream ,
378
378
_request_auth = _request_auth ,
379
379
_content_type = _content_type ,
380
380
_headers = _headers ,
@@ -399,7 +399,7 @@ def create_run(
399
399
@validate_call
400
400
def create_run_with_http_info (
401
401
self ,
402
- run_create : RunCreate ,
402
+ run_stream : RunStream ,
403
403
_request_timeout : Union [
404
404
None ,
405
405
Annotated [StrictFloat , Field (gt = 0 )],
@@ -416,8 +416,8 @@ def create_run_with_http_info(
416
416
417
417
Create a run in a new thread, return the run ID immediately. Don't wait for the final run output.
418
418
419
- :param run_create : (required)
420
- :type run_create: RunCreate
419
+ :param run_stream : (required)
420
+ :type run_stream: RunStream
421
421
:param _request_timeout: timeout setting for this request. If one
422
422
number provided, it will be total request
423
423
timeout. It can also be a pair (tuple) of
@@ -441,7 +441,7 @@ def create_run_with_http_info(
441
441
""" # noqa: E501
442
442
443
443
_param = self ._create_run_serialize (
444
- run_create = run_create ,
444
+ run_stream = run_stream ,
445
445
_request_auth = _request_auth ,
446
446
_content_type = _content_type ,
447
447
_headers = _headers ,
@@ -466,7 +466,7 @@ def create_run_with_http_info(
466
466
@validate_call
467
467
def create_run_without_preload_content (
468
468
self ,
469
- run_create : RunCreate ,
469
+ run_stream : RunStream ,
470
470
_request_timeout : Union [
471
471
None ,
472
472
Annotated [StrictFloat , Field (gt = 0 )],
@@ -483,8 +483,8 @@ def create_run_without_preload_content(
483
483
484
484
Create a run in a new thread, return the run ID immediately. Don't wait for the final run output.
485
485
486
- :param run_create : (required)
487
- :type run_create: RunCreate
486
+ :param run_stream : (required)
487
+ :type run_stream: RunStream
488
488
:param _request_timeout: timeout setting for this request. If one
489
489
number provided, it will be total request
490
490
timeout. It can also be a pair (tuple) of
@@ -508,7 +508,7 @@ def create_run_without_preload_content(
508
508
""" # noqa: E501
509
509
510
510
_param = self ._create_run_serialize (
511
- run_create = run_create ,
511
+ run_stream = run_stream ,
512
512
_request_auth = _request_auth ,
513
513
_content_type = _content_type ,
514
514
_headers = _headers ,
@@ -528,7 +528,7 @@ def create_run_without_preload_content(
528
528
529
529
def _create_run_serialize (
530
530
self ,
531
- run_create ,
531
+ run_stream ,
532
532
_request_auth ,
533
533
_content_type ,
534
534
_headers ,
@@ -552,8 +552,8 @@ def _create_run_serialize(
552
552
# process the header parameters
553
553
# process the form parameters
554
554
# process the body parameter
555
- if run_create is not None :
556
- _body_params = run_create
555
+ if run_stream is not None :
556
+ _body_params = run_stream
557
557
558
558
# set the HTTP header `Accept`
559
559
if "Accept" not in _header_params :
0 commit comments