orq-ai-sdk 4.2.12__py3-none-any.whl → 4.2.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orq_ai_sdk/_version.py +3 -3
- orq_ai_sdk/agents.py +186 -186
- orq_ai_sdk/models/conversationresponse.py +1 -1
- orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
- orq_ai_sdk/models/createcontactop.py +1 -1
- orq_ai_sdk/models/createconversationop.py +1 -1
- orq_ai_sdk/models/createconversationresponseop.py +2 -2
- orq_ai_sdk/models/createdatasetitemop.py +4 -4
- orq_ai_sdk/models/createdatasetop.py +1 -1
- orq_ai_sdk/models/createdatasourceop.py +1 -1
- orq_ai_sdk/models/createevalop.py +14 -14
- orq_ai_sdk/models/createidentityop.py +1 -1
- orq_ai_sdk/models/createtoolop.py +6 -6
- orq_ai_sdk/models/filegetop.py +1 -1
- orq_ai_sdk/models/filelistop.py +1 -1
- orq_ai_sdk/models/fileuploadop.py +1 -1
- orq_ai_sdk/models/generateconversationnameop.py +1 -1
- orq_ai_sdk/models/getalltoolsop.py +6 -6
- orq_ai_sdk/models/getevalsop.py +14 -14
- orq_ai_sdk/models/listdatasetdatapointsop.py +4 -4
- orq_ai_sdk/models/listdatasetsop.py +1 -1
- orq_ai_sdk/models/listdatasourcesop.py +1 -1
- orq_ai_sdk/models/listidentitiesop.py +1 -1
- orq_ai_sdk/models/partdoneevent.py +1 -1
- orq_ai_sdk/models/reasoningpart.py +1 -1
- orq_ai_sdk/models/retrievedatapointop.py +4 -4
- orq_ai_sdk/models/retrievedatasetop.py +1 -1
- orq_ai_sdk/models/retrievedatasourceop.py +1 -1
- orq_ai_sdk/models/retrieveidentityop.py +1 -1
- orq_ai_sdk/models/retrievetoolop.py +6 -6
- orq_ai_sdk/models/runagentop.py +1 -1
- orq_ai_sdk/models/streamrunagentop.py +1 -1
- orq_ai_sdk/models/updateconversationop.py +1 -1
- orq_ai_sdk/models/updatedatapointop.py +4 -4
- orq_ai_sdk/models/updatedatasetop.py +1 -1
- orq_ai_sdk/models/updatedatasourceop.py +1 -1
- orq_ai_sdk/models/updateevalop.py +14 -14
- orq_ai_sdk/models/updateidentityop.py +1 -1
- orq_ai_sdk/models/updatetoolop.py +7 -7
- {orq_ai_sdk-4.2.12.dist-info → orq_ai_sdk-4.2.15.dist-info}/METADATA +2 -2
- {orq_ai_sdk-4.2.12.dist-info → orq_ai_sdk-4.2.15.dist-info}/RECORD +43 -43
- {orq_ai_sdk-4.2.12.dist-info → orq_ai_sdk-4.2.15.dist-info}/WHEEL +0 -0
- {orq_ai_sdk-4.2.12.dist-info → orq_ai_sdk-4.2.15.dist-info}/top_level.txt +0 -0
orq_ai_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "orq-ai-sdk"
|
|
6
|
-
__version__: str = "4.2.
|
|
6
|
+
__version__: str = "4.2.15"
|
|
7
7
|
__openapi_doc_version__: str = "2.0"
|
|
8
|
-
__gen_version__: str = "2.801.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 4.2.
|
|
8
|
+
__gen_version__: str = "2.801.2"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 4.2.15 2.801.2 2.0 orq-ai-sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
orq_ai_sdk/agents.py
CHANGED
|
@@ -363,6 +363,192 @@ class Agents(BaseSDK):
|
|
|
363
363
|
|
|
364
364
|
raise models.APIError("Unexpected response received", http_res)
|
|
365
365
|
|
|
366
|
+
def list(
|
|
367
|
+
self,
|
|
368
|
+
*,
|
|
369
|
+
limit: Optional[float] = None,
|
|
370
|
+
starting_after: Optional[str] = None,
|
|
371
|
+
ending_before: Optional[str] = None,
|
|
372
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
373
|
+
server_url: Optional[str] = None,
|
|
374
|
+
timeout_ms: Optional[int] = None,
|
|
375
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
376
|
+
) -> models.ListAgentsResponseBody:
|
|
377
|
+
r"""List agents
|
|
378
|
+
|
|
379
|
+
Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
|
|
380
|
+
|
|
381
|
+
:param limit: A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
382
|
+
:param starting_after: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
383
|
+
:param ending_before: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
384
|
+
:param retries: Override the default retry configuration for this method
|
|
385
|
+
:param server_url: Override the default server URL for this method
|
|
386
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
387
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
388
|
+
"""
|
|
389
|
+
base_url = None
|
|
390
|
+
url_variables = None
|
|
391
|
+
if timeout_ms is None:
|
|
392
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
393
|
+
|
|
394
|
+
if timeout_ms is None:
|
|
395
|
+
timeout_ms = 600000
|
|
396
|
+
|
|
397
|
+
if server_url is not None:
|
|
398
|
+
base_url = server_url
|
|
399
|
+
else:
|
|
400
|
+
base_url = self._get_url(base_url, url_variables)
|
|
401
|
+
|
|
402
|
+
request = models.ListAgentsRequest(
|
|
403
|
+
limit=limit,
|
|
404
|
+
starting_after=starting_after,
|
|
405
|
+
ending_before=ending_before,
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
req = self._build_request(
|
|
409
|
+
method="GET",
|
|
410
|
+
path="/v2/agents",
|
|
411
|
+
base_url=base_url,
|
|
412
|
+
url_variables=url_variables,
|
|
413
|
+
request=request,
|
|
414
|
+
request_body_required=False,
|
|
415
|
+
request_has_path_params=False,
|
|
416
|
+
request_has_query_params=True,
|
|
417
|
+
user_agent_header="user-agent",
|
|
418
|
+
accept_header_value="application/json",
|
|
419
|
+
http_headers=http_headers,
|
|
420
|
+
security=self.sdk_configuration.security,
|
|
421
|
+
allow_empty_value=None,
|
|
422
|
+
timeout_ms=timeout_ms,
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
if retries == UNSET:
|
|
426
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
427
|
+
retries = self.sdk_configuration.retry_config
|
|
428
|
+
|
|
429
|
+
retry_config = None
|
|
430
|
+
if isinstance(retries, utils.RetryConfig):
|
|
431
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
432
|
+
|
|
433
|
+
http_res = self.do_request(
|
|
434
|
+
hook_ctx=HookContext(
|
|
435
|
+
config=self.sdk_configuration,
|
|
436
|
+
base_url=base_url or "",
|
|
437
|
+
operation_id="ListAgents",
|
|
438
|
+
oauth2_scopes=None,
|
|
439
|
+
security_source=get_security_from_env(
|
|
440
|
+
self.sdk_configuration.security, models.Security
|
|
441
|
+
),
|
|
442
|
+
),
|
|
443
|
+
request=req,
|
|
444
|
+
error_status_codes=["4XX", "5XX"],
|
|
445
|
+
retry_config=retry_config,
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
449
|
+
return unmarshal_json_response(models.ListAgentsResponseBody, http_res)
|
|
450
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
451
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
452
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
453
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
454
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
455
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
456
|
+
|
|
457
|
+
raise models.APIError("Unexpected response received", http_res)
|
|
458
|
+
|
|
459
|
+
async def list_async(
|
|
460
|
+
self,
|
|
461
|
+
*,
|
|
462
|
+
limit: Optional[float] = None,
|
|
463
|
+
starting_after: Optional[str] = None,
|
|
464
|
+
ending_before: Optional[str] = None,
|
|
465
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
466
|
+
server_url: Optional[str] = None,
|
|
467
|
+
timeout_ms: Optional[int] = None,
|
|
468
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
469
|
+
) -> models.ListAgentsResponseBody:
|
|
470
|
+
r"""List agents
|
|
471
|
+
|
|
472
|
+
Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
|
|
473
|
+
|
|
474
|
+
:param limit: A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
475
|
+
:param starting_after: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
476
|
+
:param ending_before: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
477
|
+
:param retries: Override the default retry configuration for this method
|
|
478
|
+
:param server_url: Override the default server URL for this method
|
|
479
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
480
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
481
|
+
"""
|
|
482
|
+
base_url = None
|
|
483
|
+
url_variables = None
|
|
484
|
+
if timeout_ms is None:
|
|
485
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
486
|
+
|
|
487
|
+
if timeout_ms is None:
|
|
488
|
+
timeout_ms = 600000
|
|
489
|
+
|
|
490
|
+
if server_url is not None:
|
|
491
|
+
base_url = server_url
|
|
492
|
+
else:
|
|
493
|
+
base_url = self._get_url(base_url, url_variables)
|
|
494
|
+
|
|
495
|
+
request = models.ListAgentsRequest(
|
|
496
|
+
limit=limit,
|
|
497
|
+
starting_after=starting_after,
|
|
498
|
+
ending_before=ending_before,
|
|
499
|
+
)
|
|
500
|
+
|
|
501
|
+
req = self._build_request_async(
|
|
502
|
+
method="GET",
|
|
503
|
+
path="/v2/agents",
|
|
504
|
+
base_url=base_url,
|
|
505
|
+
url_variables=url_variables,
|
|
506
|
+
request=request,
|
|
507
|
+
request_body_required=False,
|
|
508
|
+
request_has_path_params=False,
|
|
509
|
+
request_has_query_params=True,
|
|
510
|
+
user_agent_header="user-agent",
|
|
511
|
+
accept_header_value="application/json",
|
|
512
|
+
http_headers=http_headers,
|
|
513
|
+
security=self.sdk_configuration.security,
|
|
514
|
+
allow_empty_value=None,
|
|
515
|
+
timeout_ms=timeout_ms,
|
|
516
|
+
)
|
|
517
|
+
|
|
518
|
+
if retries == UNSET:
|
|
519
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
520
|
+
retries = self.sdk_configuration.retry_config
|
|
521
|
+
|
|
522
|
+
retry_config = None
|
|
523
|
+
if isinstance(retries, utils.RetryConfig):
|
|
524
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
525
|
+
|
|
526
|
+
http_res = await self.do_request_async(
|
|
527
|
+
hook_ctx=HookContext(
|
|
528
|
+
config=self.sdk_configuration,
|
|
529
|
+
base_url=base_url or "",
|
|
530
|
+
operation_id="ListAgents",
|
|
531
|
+
oauth2_scopes=None,
|
|
532
|
+
security_source=get_security_from_env(
|
|
533
|
+
self.sdk_configuration.security, models.Security
|
|
534
|
+
),
|
|
535
|
+
),
|
|
536
|
+
request=req,
|
|
537
|
+
error_status_codes=["4XX", "5XX"],
|
|
538
|
+
retry_config=retry_config,
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
542
|
+
return unmarshal_json_response(models.ListAgentsResponseBody, http_res)
|
|
543
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
544
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
545
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
546
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
547
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
548
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
549
|
+
|
|
550
|
+
raise models.APIError("Unexpected response received", http_res)
|
|
551
|
+
|
|
366
552
|
def delete(
|
|
367
553
|
self,
|
|
368
554
|
*,
|
|
@@ -1425,192 +1611,6 @@ class Agents(BaseSDK):
|
|
|
1425
1611
|
|
|
1426
1612
|
raise models.APIError("Unexpected response received", http_res)
|
|
1427
1613
|
|
|
1428
|
-
def list(
|
|
1429
|
-
self,
|
|
1430
|
-
*,
|
|
1431
|
-
limit: Optional[float] = None,
|
|
1432
|
-
starting_after: Optional[str] = None,
|
|
1433
|
-
ending_before: Optional[str] = None,
|
|
1434
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1435
|
-
server_url: Optional[str] = None,
|
|
1436
|
-
timeout_ms: Optional[int] = None,
|
|
1437
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1438
|
-
) -> models.ListAgentsResponseBody:
|
|
1439
|
-
r"""List agents
|
|
1440
|
-
|
|
1441
|
-
Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
|
|
1442
|
-
|
|
1443
|
-
:param limit: A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
1444
|
-
:param starting_after: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
1445
|
-
:param ending_before: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
1446
|
-
:param retries: Override the default retry configuration for this method
|
|
1447
|
-
:param server_url: Override the default server URL for this method
|
|
1448
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1449
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1450
|
-
"""
|
|
1451
|
-
base_url = None
|
|
1452
|
-
url_variables = None
|
|
1453
|
-
if timeout_ms is None:
|
|
1454
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1455
|
-
|
|
1456
|
-
if timeout_ms is None:
|
|
1457
|
-
timeout_ms = 600000
|
|
1458
|
-
|
|
1459
|
-
if server_url is not None:
|
|
1460
|
-
base_url = server_url
|
|
1461
|
-
else:
|
|
1462
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1463
|
-
|
|
1464
|
-
request = models.ListAgentsRequest(
|
|
1465
|
-
limit=limit,
|
|
1466
|
-
starting_after=starting_after,
|
|
1467
|
-
ending_before=ending_before,
|
|
1468
|
-
)
|
|
1469
|
-
|
|
1470
|
-
req = self._build_request(
|
|
1471
|
-
method="GET",
|
|
1472
|
-
path="/v2/agents/",
|
|
1473
|
-
base_url=base_url,
|
|
1474
|
-
url_variables=url_variables,
|
|
1475
|
-
request=request,
|
|
1476
|
-
request_body_required=False,
|
|
1477
|
-
request_has_path_params=False,
|
|
1478
|
-
request_has_query_params=True,
|
|
1479
|
-
user_agent_header="user-agent",
|
|
1480
|
-
accept_header_value="application/json",
|
|
1481
|
-
http_headers=http_headers,
|
|
1482
|
-
security=self.sdk_configuration.security,
|
|
1483
|
-
allow_empty_value=None,
|
|
1484
|
-
timeout_ms=timeout_ms,
|
|
1485
|
-
)
|
|
1486
|
-
|
|
1487
|
-
if retries == UNSET:
|
|
1488
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1489
|
-
retries = self.sdk_configuration.retry_config
|
|
1490
|
-
|
|
1491
|
-
retry_config = None
|
|
1492
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1493
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1494
|
-
|
|
1495
|
-
http_res = self.do_request(
|
|
1496
|
-
hook_ctx=HookContext(
|
|
1497
|
-
config=self.sdk_configuration,
|
|
1498
|
-
base_url=base_url or "",
|
|
1499
|
-
operation_id="ListAgents",
|
|
1500
|
-
oauth2_scopes=None,
|
|
1501
|
-
security_source=get_security_from_env(
|
|
1502
|
-
self.sdk_configuration.security, models.Security
|
|
1503
|
-
),
|
|
1504
|
-
),
|
|
1505
|
-
request=req,
|
|
1506
|
-
error_status_codes=["4XX", "5XX"],
|
|
1507
|
-
retry_config=retry_config,
|
|
1508
|
-
)
|
|
1509
|
-
|
|
1510
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1511
|
-
return unmarshal_json_response(models.ListAgentsResponseBody, http_res)
|
|
1512
|
-
if utils.match_response(http_res, "4XX", "*"):
|
|
1513
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1514
|
-
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
1515
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1516
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1517
|
-
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
1518
|
-
|
|
1519
|
-
raise models.APIError("Unexpected response received", http_res)
|
|
1520
|
-
|
|
1521
|
-
async def list_async(
|
|
1522
|
-
self,
|
|
1523
|
-
*,
|
|
1524
|
-
limit: Optional[float] = None,
|
|
1525
|
-
starting_after: Optional[str] = None,
|
|
1526
|
-
ending_before: Optional[str] = None,
|
|
1527
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1528
|
-
server_url: Optional[str] = None,
|
|
1529
|
-
timeout_ms: Optional[int] = None,
|
|
1530
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1531
|
-
) -> models.ListAgentsResponseBody:
|
|
1532
|
-
r"""List agents
|
|
1533
|
-
|
|
1534
|
-
Retrieves a comprehensive list of agents configured in your workspace. Supports pagination for large datasets and returns agents sorted by creation date (newest first). Each agent in the response includes its complete configuration: model settings with fallback options, instructions, tools, knowledge bases, memory stores, and execution parameters. Use pagination parameters to efficiently navigate through large collections of agents.
|
|
1535
|
-
|
|
1536
|
-
:param limit: A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
1537
|
-
:param starting_after: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
1538
|
-
:param ending_before: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
1539
|
-
:param retries: Override the default retry configuration for this method
|
|
1540
|
-
:param server_url: Override the default server URL for this method
|
|
1541
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1542
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1543
|
-
"""
|
|
1544
|
-
base_url = None
|
|
1545
|
-
url_variables = None
|
|
1546
|
-
if timeout_ms is None:
|
|
1547
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1548
|
-
|
|
1549
|
-
if timeout_ms is None:
|
|
1550
|
-
timeout_ms = 600000
|
|
1551
|
-
|
|
1552
|
-
if server_url is not None:
|
|
1553
|
-
base_url = server_url
|
|
1554
|
-
else:
|
|
1555
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1556
|
-
|
|
1557
|
-
request = models.ListAgentsRequest(
|
|
1558
|
-
limit=limit,
|
|
1559
|
-
starting_after=starting_after,
|
|
1560
|
-
ending_before=ending_before,
|
|
1561
|
-
)
|
|
1562
|
-
|
|
1563
|
-
req = self._build_request_async(
|
|
1564
|
-
method="GET",
|
|
1565
|
-
path="/v2/agents/",
|
|
1566
|
-
base_url=base_url,
|
|
1567
|
-
url_variables=url_variables,
|
|
1568
|
-
request=request,
|
|
1569
|
-
request_body_required=False,
|
|
1570
|
-
request_has_path_params=False,
|
|
1571
|
-
request_has_query_params=True,
|
|
1572
|
-
user_agent_header="user-agent",
|
|
1573
|
-
accept_header_value="application/json",
|
|
1574
|
-
http_headers=http_headers,
|
|
1575
|
-
security=self.sdk_configuration.security,
|
|
1576
|
-
allow_empty_value=None,
|
|
1577
|
-
timeout_ms=timeout_ms,
|
|
1578
|
-
)
|
|
1579
|
-
|
|
1580
|
-
if retries == UNSET:
|
|
1581
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1582
|
-
retries = self.sdk_configuration.retry_config
|
|
1583
|
-
|
|
1584
|
-
retry_config = None
|
|
1585
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1586
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1587
|
-
|
|
1588
|
-
http_res = await self.do_request_async(
|
|
1589
|
-
hook_ctx=HookContext(
|
|
1590
|
-
config=self.sdk_configuration,
|
|
1591
|
-
base_url=base_url or "",
|
|
1592
|
-
operation_id="ListAgents",
|
|
1593
|
-
oauth2_scopes=None,
|
|
1594
|
-
security_source=get_security_from_env(
|
|
1595
|
-
self.sdk_configuration.security, models.Security
|
|
1596
|
-
),
|
|
1597
|
-
),
|
|
1598
|
-
request=req,
|
|
1599
|
-
error_status_codes=["4XX", "5XX"],
|
|
1600
|
-
retry_config=retry_config,
|
|
1601
|
-
)
|
|
1602
|
-
|
|
1603
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1604
|
-
return unmarshal_json_response(models.ListAgentsResponseBody, http_res)
|
|
1605
|
-
if utils.match_response(http_res, "4XX", "*"):
|
|
1606
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1607
|
-
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
1608
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1609
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1610
|
-
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
1611
|
-
|
|
1612
|
-
raise models.APIError("Unexpected response received", http_res)
|
|
1613
|
-
|
|
1614
1614
|
@deprecated(
|
|
1615
1615
|
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
1616
1616
|
)
|
|
@@ -104,7 +104,7 @@ class ConversationResponse(BaseModel):
|
|
|
104
104
|
r"""Unix timestamp in milliseconds when the conversation was last modified."""
|
|
105
105
|
|
|
106
106
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
107
|
-
"
|
|
107
|
+
"conv_01kg2gn1pycvayd2tc84yfwxpd"
|
|
108
108
|
)
|
|
109
109
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
110
110
|
|
|
@@ -110,7 +110,7 @@ class ConversationWithMessagesResponse(BaseModel):
|
|
|
110
110
|
r"""Conversation messages ordered chronologically (oldest first)."""
|
|
111
111
|
|
|
112
112
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
113
|
-
"
|
|
113
|
+
"conv_01kg2gn1qcp355ntt4k9hmtk5y"
|
|
114
114
|
)
|
|
115
115
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
116
116
|
|
|
@@ -132,7 +132,7 @@ class CreateContactResponseBody(BaseModel):
|
|
|
132
132
|
created: Optional[datetime] = None
|
|
133
133
|
r"""The date and time the resource was created"""
|
|
134
134
|
|
|
135
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
135
|
+
updated: Optional[datetime] = parse_datetime("2026-01-28T14:38:08.550Z")
|
|
136
136
|
r"""The date and time the resource was last updated"""
|
|
137
137
|
|
|
138
138
|
@model_serializer(mode="wrap")
|
|
@@ -199,7 +199,7 @@ class CreateConversationResponseBody(BaseModel):
|
|
|
199
199
|
r"""Unix timestamp in milliseconds when the conversation was last modified."""
|
|
200
200
|
|
|
201
201
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
202
|
-
"
|
|
202
|
+
"conv_01kg2gn1q1c18xqfxz9gvev2yx"
|
|
203
203
|
)
|
|
204
204
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
205
205
|
|
|
@@ -119,7 +119,7 @@ class CreateConversationResponsePartReasoningPart(BaseModel):
|
|
|
119
119
|
r"""The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking."""
|
|
120
120
|
|
|
121
121
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
122
|
-
"
|
|
122
|
+
"reasoning_01kg2gn1r2wyc90mh93h2xd6xn"
|
|
123
123
|
)
|
|
124
124
|
r"""Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)"""
|
|
125
125
|
|
|
@@ -211,7 +211,7 @@ class DeltaReasoningPart(BaseModel):
|
|
|
211
211
|
r"""The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking."""
|
|
212
212
|
|
|
213
213
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
214
|
-
"
|
|
214
|
+
"reasoning_01kg2gn1qw0sx1ps2d5h8xvnh8"
|
|
215
215
|
)
|
|
216
216
|
r"""Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)"""
|
|
217
217
|
|
|
@@ -1434,7 +1434,7 @@ class Evaluations3(BaseModel):
|
|
|
1434
1434
|
|
|
1435
1435
|
source: Optional[CreateDatasetItemEvaluationsDatasetsSource] = "orq"
|
|
1436
1436
|
|
|
1437
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1437
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-28T14:38:22.563Z")
|
|
1438
1438
|
r"""The date and time the item was reviewed"""
|
|
1439
1439
|
|
|
1440
1440
|
@model_serializer(mode="wrap")
|
|
@@ -1502,7 +1502,7 @@ class Evaluations2(BaseModel):
|
|
|
1502
1502
|
|
|
1503
1503
|
source: Optional[CreateDatasetItemEvaluationsSource] = "orq"
|
|
1504
1504
|
|
|
1505
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1505
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-28T14:38:22.562Z")
|
|
1506
1506
|
r"""The date and time the item was reviewed"""
|
|
1507
1507
|
|
|
1508
1508
|
@model_serializer(mode="wrap")
|
|
@@ -1570,7 +1570,7 @@ class Evaluations1(BaseModel):
|
|
|
1570
1570
|
|
|
1571
1571
|
source: Optional[EvaluationsSource] = "orq"
|
|
1572
1572
|
|
|
1573
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1573
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-28T14:38:22.562Z")
|
|
1574
1574
|
r"""The date and time the item was reviewed"""
|
|
1575
1575
|
|
|
1576
1576
|
@model_serializer(mode="wrap")
|
|
@@ -1665,7 +1665,7 @@ class CreateDatasetItemResponseBody(BaseModel):
|
|
|
1665
1665
|
created: Optional[datetime] = None
|
|
1666
1666
|
r"""The date and time the resource was created"""
|
|
1667
1667
|
|
|
1668
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
1668
|
+
updated: Optional[datetime] = parse_datetime("2026-01-28T14:38:08.550Z")
|
|
1669
1669
|
r"""The date and time the resource was last updated"""
|
|
1670
1670
|
|
|
1671
1671
|
@model_serializer(mode="wrap")
|
|
@@ -94,7 +94,7 @@ class CreateDatasetResponseBody(BaseModel):
|
|
|
94
94
|
created: Optional[datetime] = None
|
|
95
95
|
r"""The date and time the resource was created"""
|
|
96
96
|
|
|
97
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
97
|
+
updated: Optional[datetime] = parse_datetime("2026-01-28T14:38:08.550Z")
|
|
98
98
|
r"""The date and time the resource was last updated"""
|
|
99
99
|
|
|
100
100
|
@model_serializer(mode="wrap")
|
|
@@ -314,7 +314,7 @@ class CreateDatasourceResponseBody(BaseModel):
|
|
|
314
314
|
r"""The number of chunks in the datasource"""
|
|
315
315
|
|
|
316
316
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
317
|
-
"
|
|
317
|
+
"01KG2GN27N12KGSQ44PQ07PYBV"
|
|
318
318
|
)
|
|
319
319
|
r"""The unique identifier of the data source"""
|
|
320
320
|
|
|
@@ -884,9 +884,9 @@ class Typescript(BaseModel):
|
|
|
884
884
|
|
|
885
885
|
key: str
|
|
886
886
|
|
|
887
|
-
created: Optional[str] = "2026-01-
|
|
887
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
888
888
|
|
|
889
|
-
updated: Optional[str] = "2026-01-
|
|
889
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
890
890
|
|
|
891
891
|
guardrail_config: Optional[
|
|
892
892
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfig
|
|
@@ -1080,9 +1080,9 @@ class Ragas(BaseModel):
|
|
|
1080
1080
|
|
|
1081
1081
|
model: str
|
|
1082
1082
|
|
|
1083
|
-
created: Optional[str] = "2026-01-
|
|
1083
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1084
1084
|
|
|
1085
|
-
updated: Optional[str] = "2026-01-
|
|
1085
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1086
1086
|
|
|
1087
1087
|
guardrail_config: Optional[
|
|
1088
1088
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig
|
|
@@ -1775,9 +1775,9 @@ class CreateEvalResponseBodyFunction(BaseModel):
|
|
|
1775
1775
|
|
|
1776
1776
|
key: str
|
|
1777
1777
|
|
|
1778
|
-
created: Optional[str] = "2026-01-
|
|
1778
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1779
1779
|
|
|
1780
|
-
updated: Optional[str] = "2026-01-
|
|
1780
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1781
1781
|
|
|
1782
1782
|
guardrail_config: Optional[
|
|
1783
1783
|
CreateEvalResponseBodyEvalsResponse200GuardrailConfig
|
|
@@ -1952,9 +1952,9 @@ class ResponseBodyPython(BaseModel):
|
|
|
1952
1952
|
|
|
1953
1953
|
key: str
|
|
1954
1954
|
|
|
1955
|
-
created: Optional[str] = "2026-01-
|
|
1955
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1956
1956
|
|
|
1957
|
-
updated: Optional[str] = "2026-01-
|
|
1957
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
1958
1958
|
|
|
1959
1959
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsResponseGuardrailConfig] = (
|
|
1960
1960
|
None
|
|
@@ -2134,9 +2134,9 @@ class ResponseBodyHTTP(BaseModel):
|
|
|
2134
2134
|
|
|
2135
2135
|
key: str
|
|
2136
2136
|
|
|
2137
|
-
created: Optional[str] = "2026-01-
|
|
2137
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2138
2138
|
|
|
2139
|
-
updated: Optional[str] = "2026-01-
|
|
2139
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2140
2140
|
|
|
2141
2141
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsGuardrailConfig] = None
|
|
2142
2142
|
|
|
@@ -2287,9 +2287,9 @@ class ResponseBodyJSON(BaseModel):
|
|
|
2287
2287
|
|
|
2288
2288
|
key: str
|
|
2289
2289
|
|
|
2290
|
-
created: Optional[str] = "2026-01-
|
|
2290
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2291
2291
|
|
|
2292
|
-
updated: Optional[str] = "2026-01-
|
|
2292
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2293
2293
|
|
|
2294
2294
|
guardrail_config: Optional[CreateEvalResponseBodyGuardrailConfig] = None
|
|
2295
2295
|
|
|
@@ -2441,9 +2441,9 @@ class ResponseBodyLLM(BaseModel):
|
|
|
2441
2441
|
|
|
2442
2442
|
model: str
|
|
2443
2443
|
|
|
2444
|
-
created: Optional[str] = "2026-01-
|
|
2444
|
+
created: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2445
2445
|
|
|
2446
|
-
updated: Optional[str] = "2026-01-
|
|
2446
|
+
updated: Optional[str] = "2026-01-28T14:38:10.454Z"
|
|
2447
2447
|
|
|
2448
2448
|
guardrail_config: Optional[ResponseBodyGuardrailConfig] = None
|
|
2449
2449
|
|
|
@@ -137,7 +137,7 @@ class CreateIdentityResponseBody(BaseModel):
|
|
|
137
137
|
created: Optional[datetime] = None
|
|
138
138
|
r"""The date and time the resource was created"""
|
|
139
139
|
|
|
140
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
140
|
+
updated: Optional[datetime] = parse_datetime("2026-01-28T14:38:08.550Z")
|
|
141
141
|
r"""The date and time the resource was last updated"""
|
|
142
142
|
|
|
143
143
|
@model_serializer(mode="wrap")
|
|
@@ -1068,7 +1068,7 @@ class ResponseBodyCodeExecutionTool(BaseModel):
|
|
|
1068
1068
|
code_tool: ResponseBodyCodeTool
|
|
1069
1069
|
|
|
1070
1070
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1071
|
-
"
|
|
1071
|
+
"tool_01KG2GN2260X157SCCG3Q5SSNK"
|
|
1072
1072
|
)
|
|
1073
1073
|
|
|
1074
1074
|
display_name: Optional[str] = None
|
|
@@ -1195,7 +1195,7 @@ class ResponseBodyTools(BaseModel):
|
|
|
1195
1195
|
|
|
1196
1196
|
schema_: Annotated[CreateToolResponseBodySchema, pydantic.Field(alias="schema")]
|
|
1197
1197
|
|
|
1198
|
-
id: Optional[str] = "
|
|
1198
|
+
id: Optional[str] = "01KG2GN224TM9D94X8QYR0F79S"
|
|
1199
1199
|
|
|
1200
1200
|
description: Optional[str] = None
|
|
1201
1201
|
|
|
@@ -1326,7 +1326,7 @@ class ResponseBodyMCPTool(BaseModel):
|
|
|
1326
1326
|
mcp: ResponseBodyMcp
|
|
1327
1327
|
|
|
1328
1328
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1329
|
-
"
|
|
1329
|
+
"tool_01KG2GN222T9Y7ACKAR7NFGRSY"
|
|
1330
1330
|
)
|
|
1331
1331
|
|
|
1332
1332
|
display_name: Optional[str] = None
|
|
@@ -1627,7 +1627,7 @@ class ResponseBodyHTTPTool(BaseModel):
|
|
|
1627
1627
|
http: CreateToolResponseBodyHTTP
|
|
1628
1628
|
|
|
1629
1629
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1630
|
-
"
|
|
1630
|
+
"tool_01KG2GN21ZQW94X28R4DA3BG09"
|
|
1631
1631
|
)
|
|
1632
1632
|
|
|
1633
1633
|
display_name: Optional[str] = None
|
|
@@ -1822,7 +1822,7 @@ class ResponseBodyJSONSchemaTool(BaseModel):
|
|
|
1822
1822
|
json_schema: ResponseBodyJSONSchema
|
|
1823
1823
|
|
|
1824
1824
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1825
|
-
"
|
|
1825
|
+
"tool_01KG2GN21XJX6GM0YD7SKB7W52"
|
|
1826
1826
|
)
|
|
1827
1827
|
|
|
1828
1828
|
display_name: Optional[str] = None
|
|
@@ -2021,7 +2021,7 @@ class ResponseBodyFunctionTool(BaseModel):
|
|
|
2021
2021
|
function: CreateToolResponseBodyFunction
|
|
2022
2022
|
|
|
2023
2023
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
2024
|
-
"
|
|
2024
|
+
"tool_01KG2GN21VT5CW714J49THGD67"
|
|
2025
2025
|
)
|
|
2026
2026
|
|
|
2027
2027
|
display_name: Optional[str] = None
|