orq-ai-sdk 4.2.0rc48__py3-none-any.whl → 4.2.12__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.
Files changed (103) hide show
  1. orq_ai_sdk/_hooks/globalhook.py +0 -1
  2. orq_ai_sdk/_version.py +3 -3
  3. orq_ai_sdk/audio.py +30 -0
  4. orq_ai_sdk/chat.py +22 -0
  5. orq_ai_sdk/completions.py +438 -0
  6. orq_ai_sdk/contacts.py +43 -886
  7. orq_ai_sdk/deployments.py +61 -0
  8. orq_ai_sdk/edits.py +364 -0
  9. orq_ai_sdk/embeddings.py +344 -0
  10. orq_ai_sdk/generations.py +370 -0
  11. orq_ai_sdk/images.py +28 -0
  12. orq_ai_sdk/models/__init__.py +3839 -424
  13. orq_ai_sdk/models/conversationresponse.py +1 -1
  14. orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
  15. orq_ai_sdk/models/createagentrequestop.py +768 -12
  16. orq_ai_sdk/models/createagentresponse.py +68 -2
  17. orq_ai_sdk/models/createchatcompletionop.py +538 -313
  18. orq_ai_sdk/models/createcompletionop.py +2078 -0
  19. orq_ai_sdk/models/createcontactop.py +5 -10
  20. orq_ai_sdk/models/createconversationop.py +1 -1
  21. orq_ai_sdk/models/createconversationresponseop.py +2 -2
  22. orq_ai_sdk/models/createdatasetitemop.py +4 -4
  23. orq_ai_sdk/models/createdatasetop.py +1 -1
  24. orq_ai_sdk/models/createdatasourceop.py +1 -1
  25. orq_ai_sdk/models/createembeddingop.py +579 -0
  26. orq_ai_sdk/models/createevalop.py +14 -14
  27. orq_ai_sdk/models/createidentityop.py +1 -1
  28. orq_ai_sdk/models/createimageeditop.py +715 -0
  29. orq_ai_sdk/models/createimageop.py +228 -82
  30. orq_ai_sdk/models/createimagevariationop.py +706 -0
  31. orq_ai_sdk/models/creatememoryop.py +4 -2
  32. orq_ai_sdk/models/createmoderationop.py +521 -0
  33. orq_ai_sdk/models/createpromptop.py +375 -6
  34. orq_ai_sdk/models/creatererankop.py +608 -0
  35. orq_ai_sdk/models/createresponseop.py +2567 -0
  36. orq_ai_sdk/models/createspeechop.py +466 -0
  37. orq_ai_sdk/models/createtoolop.py +6 -6
  38. orq_ai_sdk/models/createtranscriptionop.py +732 -0
  39. orq_ai_sdk/models/createtranslationop.py +702 -0
  40. orq_ai_sdk/models/deploymentgetconfigop.py +17 -7
  41. orq_ai_sdk/models/deploymentsop.py +1 -0
  42. orq_ai_sdk/models/deploymentstreamop.py +7 -0
  43. orq_ai_sdk/models/filegetop.py +1 -1
  44. orq_ai_sdk/models/filelistop.py +1 -1
  45. orq_ai_sdk/models/fileuploadop.py +1 -1
  46. orq_ai_sdk/models/generateconversationnameop.py +1 -1
  47. orq_ai_sdk/models/getallmemoriesop.py +4 -2
  48. orq_ai_sdk/models/getallpromptsop.py +188 -3
  49. orq_ai_sdk/models/getalltoolsop.py +6 -6
  50. orq_ai_sdk/models/getevalsop.py +17 -17
  51. orq_ai_sdk/models/getonepromptop.py +188 -3
  52. orq_ai_sdk/models/getpromptversionop.py +188 -3
  53. orq_ai_sdk/models/invokedeploymentrequest.py +11 -4
  54. orq_ai_sdk/models/listagentsop.py +372 -0
  55. orq_ai_sdk/models/listdatasetdatapointsop.py +4 -4
  56. orq_ai_sdk/models/listdatasetsop.py +1 -1
  57. orq_ai_sdk/models/listdatasourcesop.py +1 -1
  58. orq_ai_sdk/models/listidentitiesop.py +1 -1
  59. orq_ai_sdk/models/listmodelsop.py +1 -0
  60. orq_ai_sdk/models/listpromptversionsop.py +188 -3
  61. orq_ai_sdk/models/partdoneevent.py +1 -1
  62. orq_ai_sdk/models/post_v2_router_ocrop.py +408 -0
  63. orq_ai_sdk/models/publiccontact.py +9 -3
  64. orq_ai_sdk/models/publicidentity.py +62 -0
  65. orq_ai_sdk/models/reasoningpart.py +1 -1
  66. orq_ai_sdk/models/responsedoneevent.py +14 -11
  67. orq_ai_sdk/models/retrieveagentrequestop.py +382 -0
  68. orq_ai_sdk/models/retrievedatapointop.py +4 -4
  69. orq_ai_sdk/models/retrievedatasetop.py +1 -1
  70. orq_ai_sdk/models/retrievedatasourceop.py +1 -1
  71. orq_ai_sdk/models/retrieveidentityop.py +1 -1
  72. orq_ai_sdk/models/retrievememoryop.py +4 -2
  73. orq_ai_sdk/models/retrievetoolop.py +6 -6
  74. orq_ai_sdk/models/runagentop.py +379 -9
  75. orq_ai_sdk/models/streamrunagentop.py +385 -9
  76. orq_ai_sdk/models/updateagentop.py +770 -12
  77. orq_ai_sdk/models/updateconversationop.py +1 -1
  78. orq_ai_sdk/models/updatedatapointop.py +4 -4
  79. orq_ai_sdk/models/updatedatasetop.py +1 -1
  80. orq_ai_sdk/models/updatedatasourceop.py +1 -1
  81. orq_ai_sdk/models/updateevalop.py +14 -14
  82. orq_ai_sdk/models/updateidentityop.py +1 -1
  83. orq_ai_sdk/models/updatememoryop.py +4 -2
  84. orq_ai_sdk/models/updatepromptop.py +375 -6
  85. orq_ai_sdk/models/updatetoolop.py +7 -7
  86. orq_ai_sdk/moderations.py +218 -0
  87. orq_ai_sdk/orq_completions.py +666 -0
  88. orq_ai_sdk/orq_responses.py +398 -0
  89. orq_ai_sdk/rerank.py +330 -0
  90. orq_ai_sdk/router.py +89 -641
  91. orq_ai_sdk/speech.py +333 -0
  92. orq_ai_sdk/transcriptions.py +416 -0
  93. orq_ai_sdk/translations.py +384 -0
  94. orq_ai_sdk/variations.py +364 -0
  95. orq_ai_sdk-4.2.12.dist-info/METADATA +888 -0
  96. {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/RECORD +98 -75
  97. {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/WHEEL +1 -1
  98. orq_ai_sdk/models/deletecontactop.py +0 -44
  99. orq_ai_sdk/models/listcontactsop.py +0 -265
  100. orq_ai_sdk/models/retrievecontactop.py +0 -142
  101. orq_ai_sdk/models/updatecontactop.py +0 -233
  102. orq_ai_sdk-4.2.0rc48.dist-info/METADATA +0 -788
  103. {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/top_level.txt +0 -0
@@ -668,9 +668,159 @@ class ListAgentsAgentsGuardrails(BaseModel):
668
668
  r"""Determines whether the guardrail runs on the input (user message) or output (model response)."""
669
669
 
670
670
 
671
+ class ListAgentsFallbacksTypedDict(TypedDict):
672
+ model: str
673
+ r"""Fallback model identifier"""
674
+
675
+
676
+ class ListAgentsFallbacks(BaseModel):
677
+ model: str
678
+ r"""Fallback model identifier"""
679
+
680
+
681
+ class ListAgentsAgentsRetryTypedDict(TypedDict):
682
+ r"""Retry configuration for the request"""
683
+
684
+ count: NotRequired[float]
685
+ r"""Number of retry attempts (1-5)"""
686
+ on_codes: NotRequired[List[float]]
687
+ r"""HTTP status codes that trigger retry logic"""
688
+
689
+
690
+ class ListAgentsAgentsRetry(BaseModel):
691
+ r"""Retry configuration for the request"""
692
+
693
+ count: Optional[float] = 3
694
+ r"""Number of retry attempts (1-5)"""
695
+
696
+ on_codes: Optional[List[float]] = None
697
+ r"""HTTP status codes that trigger retry logic"""
698
+
699
+ @model_serializer(mode="wrap")
700
+ def serialize_model(self, handler):
701
+ optional_fields = set(["count", "on_codes"])
702
+ serialized = handler(self)
703
+ m = {}
704
+
705
+ for n, f in type(self).model_fields.items():
706
+ k = f.alias or n
707
+ val = serialized.get(k)
708
+
709
+ if val != UNSET_SENTINEL:
710
+ if val is not None or k not in optional_fields:
711
+ m[k] = val
712
+
713
+ return m
714
+
715
+
716
+ ListAgentsType = Literal["exact_match",]
717
+
718
+
719
+ class ListAgentsCacheTypedDict(TypedDict):
720
+ r"""Cache configuration for the request."""
721
+
722
+ type: ListAgentsType
723
+ ttl: NotRequired[float]
724
+ r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
725
+
726
+
727
+ class ListAgentsCache(BaseModel):
728
+ r"""Cache configuration for the request."""
729
+
730
+ type: ListAgentsType
731
+
732
+ ttl: Optional[float] = 1800
733
+ r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
734
+
735
+ @model_serializer(mode="wrap")
736
+ def serialize_model(self, handler):
737
+ optional_fields = set(["ttl"])
738
+ serialized = handler(self)
739
+ m = {}
740
+
741
+ for n, f in type(self).model_fields.items():
742
+ k = f.alias or n
743
+ val = serialized.get(k)
744
+
745
+ if val != UNSET_SENTINEL:
746
+ if val is not None or k not in optional_fields:
747
+ m[k] = val
748
+
749
+ return m
750
+
751
+
752
+ ListAgentsLoadBalancerType = Literal["weight_based",]
753
+
754
+
755
+ class ListAgentsLoadBalancerModelsTypedDict(TypedDict):
756
+ model: str
757
+ r"""Model identifier for load balancing"""
758
+ weight: NotRequired[float]
759
+ r"""Weight assigned to this model for load balancing"""
760
+
761
+
762
+ class ListAgentsLoadBalancerModels(BaseModel):
763
+ model: str
764
+ r"""Model identifier for load balancing"""
765
+
766
+ weight: Optional[float] = 0.5
767
+ r"""Weight assigned to this model for load balancing"""
768
+
769
+ @model_serializer(mode="wrap")
770
+ def serialize_model(self, handler):
771
+ optional_fields = set(["weight"])
772
+ serialized = handler(self)
773
+ m = {}
774
+
775
+ for n, f in type(self).model_fields.items():
776
+ k = f.alias or n
777
+ val = serialized.get(k)
778
+
779
+ if val != UNSET_SENTINEL:
780
+ if val is not None or k not in optional_fields:
781
+ m[k] = val
782
+
783
+ return m
784
+
785
+
786
+ class ListAgentsLoadBalancer1TypedDict(TypedDict):
787
+ type: ListAgentsLoadBalancerType
788
+ models: List[ListAgentsLoadBalancerModelsTypedDict]
789
+
790
+
791
+ class ListAgentsLoadBalancer1(BaseModel):
792
+ type: ListAgentsLoadBalancerType
793
+
794
+ models: List[ListAgentsLoadBalancerModels]
795
+
796
+
797
+ ListAgentsLoadBalancerTypedDict = ListAgentsLoadBalancer1TypedDict
798
+ r"""Load balancer configuration for the request."""
799
+
800
+
801
+ ListAgentsLoadBalancer = ListAgentsLoadBalancer1
802
+ r"""Load balancer configuration for the request."""
803
+
804
+
805
+ class ListAgentsTimeoutTypedDict(TypedDict):
806
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
807
+
808
+ call_timeout: float
809
+ r"""Timeout value in milliseconds"""
810
+
811
+
812
+ class ListAgentsTimeout(BaseModel):
813
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
814
+
815
+ call_timeout: float
816
+ r"""Timeout value in milliseconds"""
817
+
818
+
671
819
  class ListAgentsParametersTypedDict(TypedDict):
672
820
  r"""Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults."""
673
821
 
822
+ name: NotRequired[str]
823
+ r"""The name to display on the trace. If not specified, the default system name will be used."""
674
824
  audio: NotRequired[Nullable[ListAgentsAudioTypedDict]]
675
825
  r"""Parameters for audio output. Required when audio output is requested with modalities: [\"audio\"]. Learn more."""
676
826
  frequency_penalty: NotRequired[Nullable[float]]
@@ -725,11 +875,24 @@ class ListAgentsParametersTypedDict(TypedDict):
725
875
  r"""Output types that you would like the model to generate. Most models are capable of generating text, which is the default: [\"text\"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: [\"text\", \"audio\"]."""
726
876
  guardrails: NotRequired[List[ListAgentsAgentsGuardrailsTypedDict]]
727
877
  r"""A list of guardrails to apply to the request."""
878
+ fallbacks: NotRequired[List[ListAgentsFallbacksTypedDict]]
879
+ r"""Array of fallback models to use if primary model fails"""
880
+ retry: NotRequired[ListAgentsAgentsRetryTypedDict]
881
+ r"""Retry configuration for the request"""
882
+ cache: NotRequired[ListAgentsCacheTypedDict]
883
+ r"""Cache configuration for the request."""
884
+ load_balancer: NotRequired[ListAgentsLoadBalancerTypedDict]
885
+ r"""Load balancer configuration for the request."""
886
+ timeout: NotRequired[ListAgentsTimeoutTypedDict]
887
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
728
888
 
729
889
 
730
890
  class ListAgentsParameters(BaseModel):
731
891
  r"""Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults."""
732
892
 
893
+ name: Optional[str] = None
894
+ r"""The name to display on the trace. If not specified, the default system name will be used."""
895
+
733
896
  audio: OptionalNullable[ListAgentsAudio] = UNSET
734
897
  r"""Parameters for audio output. Required when audio output is requested with modalities: [\"audio\"]. Learn more."""
735
898
 
@@ -806,10 +969,26 @@ class ListAgentsParameters(BaseModel):
806
969
  guardrails: Optional[List[ListAgentsAgentsGuardrails]] = None
807
970
  r"""A list of guardrails to apply to the request."""
808
971
 
972
+ fallbacks: Optional[List[ListAgentsFallbacks]] = None
973
+ r"""Array of fallback models to use if primary model fails"""
974
+
975
+ retry: Optional[ListAgentsAgentsRetry] = None
976
+ r"""Retry configuration for the request"""
977
+
978
+ cache: Optional[ListAgentsCache] = None
979
+ r"""Cache configuration for the request."""
980
+
981
+ load_balancer: Optional[ListAgentsLoadBalancer] = None
982
+ r"""Load balancer configuration for the request."""
983
+
984
+ timeout: Optional[ListAgentsTimeout] = None
985
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
986
+
809
987
  @model_serializer(mode="wrap")
810
988
  def serialize_model(self, handler):
811
989
  optional_fields = set(
812
990
  [
991
+ "name",
813
992
  "audio",
814
993
  "frequency_penalty",
815
994
  "max_tokens",
@@ -832,6 +1011,11 @@ class ListAgentsParameters(BaseModel):
832
1011
  "parallel_tool_calls",
833
1012
  "modalities",
834
1013
  "guardrails",
1014
+ "fallbacks",
1015
+ "retry",
1016
+ "cache",
1017
+ "load_balancer",
1018
+ "timeout",
835
1019
  ]
836
1020
  )
837
1021
  nullable_fields = set(
@@ -1269,9 +1453,161 @@ class ListAgentsFallbackModelConfigurationGuardrails(BaseModel):
1269
1453
  r"""Determines whether the guardrail runs on the input (user message) or output (model response)."""
1270
1454
 
1271
1455
 
1456
+ class ListAgentsFallbackModelConfigurationFallbacksTypedDict(TypedDict):
1457
+ model: str
1458
+ r"""Fallback model identifier"""
1459
+
1460
+
1461
+ class ListAgentsFallbackModelConfigurationFallbacks(BaseModel):
1462
+ model: str
1463
+ r"""Fallback model identifier"""
1464
+
1465
+
1466
+ class ListAgentsFallbackModelConfigurationAgentsRetryTypedDict(TypedDict):
1467
+ r"""Retry configuration for the request"""
1468
+
1469
+ count: NotRequired[float]
1470
+ r"""Number of retry attempts (1-5)"""
1471
+ on_codes: NotRequired[List[float]]
1472
+ r"""HTTP status codes that trigger retry logic"""
1473
+
1474
+
1475
+ class ListAgentsFallbackModelConfigurationAgentsRetry(BaseModel):
1476
+ r"""Retry configuration for the request"""
1477
+
1478
+ count: Optional[float] = 3
1479
+ r"""Number of retry attempts (1-5)"""
1480
+
1481
+ on_codes: Optional[List[float]] = None
1482
+ r"""HTTP status codes that trigger retry logic"""
1483
+
1484
+ @model_serializer(mode="wrap")
1485
+ def serialize_model(self, handler):
1486
+ optional_fields = set(["count", "on_codes"])
1487
+ serialized = handler(self)
1488
+ m = {}
1489
+
1490
+ for n, f in type(self).model_fields.items():
1491
+ k = f.alias or n
1492
+ val = serialized.get(k)
1493
+
1494
+ if val != UNSET_SENTINEL:
1495
+ if val is not None or k not in optional_fields:
1496
+ m[k] = val
1497
+
1498
+ return m
1499
+
1500
+
1501
+ ListAgentsFallbackModelConfigurationType = Literal["exact_match",]
1502
+
1503
+
1504
+ class ListAgentsFallbackModelConfigurationCacheTypedDict(TypedDict):
1505
+ r"""Cache configuration for the request."""
1506
+
1507
+ type: ListAgentsFallbackModelConfigurationType
1508
+ ttl: NotRequired[float]
1509
+ r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
1510
+
1511
+
1512
+ class ListAgentsFallbackModelConfigurationCache(BaseModel):
1513
+ r"""Cache configuration for the request."""
1514
+
1515
+ type: ListAgentsFallbackModelConfigurationType
1516
+
1517
+ ttl: Optional[float] = 1800
1518
+ r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
1519
+
1520
+ @model_serializer(mode="wrap")
1521
+ def serialize_model(self, handler):
1522
+ optional_fields = set(["ttl"])
1523
+ serialized = handler(self)
1524
+ m = {}
1525
+
1526
+ for n, f in type(self).model_fields.items():
1527
+ k = f.alias or n
1528
+ val = serialized.get(k)
1529
+
1530
+ if val != UNSET_SENTINEL:
1531
+ if val is not None or k not in optional_fields:
1532
+ m[k] = val
1533
+
1534
+ return m
1535
+
1536
+
1537
+ ListAgentsLoadBalancerAgentsType = Literal["weight_based",]
1538
+
1539
+
1540
+ class ListAgentsLoadBalancerAgentsModelsTypedDict(TypedDict):
1541
+ model: str
1542
+ r"""Model identifier for load balancing"""
1543
+ weight: NotRequired[float]
1544
+ r"""Weight assigned to this model for load balancing"""
1545
+
1546
+
1547
+ class ListAgentsLoadBalancerAgentsModels(BaseModel):
1548
+ model: str
1549
+ r"""Model identifier for load balancing"""
1550
+
1551
+ weight: Optional[float] = 0.5
1552
+ r"""Weight assigned to this model for load balancing"""
1553
+
1554
+ @model_serializer(mode="wrap")
1555
+ def serialize_model(self, handler):
1556
+ optional_fields = set(["weight"])
1557
+ serialized = handler(self)
1558
+ m = {}
1559
+
1560
+ for n, f in type(self).model_fields.items():
1561
+ k = f.alias or n
1562
+ val = serialized.get(k)
1563
+
1564
+ if val != UNSET_SENTINEL:
1565
+ if val is not None or k not in optional_fields:
1566
+ m[k] = val
1567
+
1568
+ return m
1569
+
1570
+
1571
+ class ListAgentsLoadBalancerAgents1TypedDict(TypedDict):
1572
+ type: ListAgentsLoadBalancerAgentsType
1573
+ models: List[ListAgentsLoadBalancerAgentsModelsTypedDict]
1574
+
1575
+
1576
+ class ListAgentsLoadBalancerAgents1(BaseModel):
1577
+ type: ListAgentsLoadBalancerAgentsType
1578
+
1579
+ models: List[ListAgentsLoadBalancerAgentsModels]
1580
+
1581
+
1582
+ ListAgentsFallbackModelConfigurationLoadBalancerTypedDict = (
1583
+ ListAgentsLoadBalancerAgents1TypedDict
1584
+ )
1585
+ r"""Load balancer configuration for the request."""
1586
+
1587
+
1588
+ ListAgentsFallbackModelConfigurationLoadBalancer = ListAgentsLoadBalancerAgents1
1589
+ r"""Load balancer configuration for the request."""
1590
+
1591
+
1592
+ class ListAgentsFallbackModelConfigurationTimeoutTypedDict(TypedDict):
1593
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
1594
+
1595
+ call_timeout: float
1596
+ r"""Timeout value in milliseconds"""
1597
+
1598
+
1599
+ class ListAgentsFallbackModelConfigurationTimeout(BaseModel):
1600
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
1601
+
1602
+ call_timeout: float
1603
+ r"""Timeout value in milliseconds"""
1604
+
1605
+
1272
1606
  class ListAgentsFallbackModelConfigurationParametersTypedDict(TypedDict):
1273
1607
  r"""Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used."""
1274
1608
 
1609
+ name: NotRequired[str]
1610
+ r"""The name to display on the trace. If not specified, the default system name will be used."""
1275
1611
  audio: NotRequired[Nullable[ListAgentsFallbackModelConfigurationAudioTypedDict]]
1276
1612
  r"""Parameters for audio output. Required when audio output is requested with modalities: [\"audio\"]. Learn more."""
1277
1613
  frequency_penalty: NotRequired[Nullable[float]]
@@ -1334,11 +1670,26 @@ class ListAgentsFallbackModelConfigurationParametersTypedDict(TypedDict):
1334
1670
  List[ListAgentsFallbackModelConfigurationGuardrailsTypedDict]
1335
1671
  ]
1336
1672
  r"""A list of guardrails to apply to the request."""
1673
+ fallbacks: NotRequired[List[ListAgentsFallbackModelConfigurationFallbacksTypedDict]]
1674
+ r"""Array of fallback models to use if primary model fails"""
1675
+ retry: NotRequired[ListAgentsFallbackModelConfigurationAgentsRetryTypedDict]
1676
+ r"""Retry configuration for the request"""
1677
+ cache: NotRequired[ListAgentsFallbackModelConfigurationCacheTypedDict]
1678
+ r"""Cache configuration for the request."""
1679
+ load_balancer: NotRequired[
1680
+ ListAgentsFallbackModelConfigurationLoadBalancerTypedDict
1681
+ ]
1682
+ r"""Load balancer configuration for the request."""
1683
+ timeout: NotRequired[ListAgentsFallbackModelConfigurationTimeoutTypedDict]
1684
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
1337
1685
 
1338
1686
 
1339
1687
  class ListAgentsFallbackModelConfigurationParameters(BaseModel):
1340
1688
  r"""Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used."""
1341
1689
 
1690
+ name: Optional[str] = None
1691
+ r"""The name to display on the trace. If not specified, the default system name will be used."""
1692
+
1342
1693
  audio: OptionalNullable[ListAgentsFallbackModelConfigurationAudio] = UNSET
1343
1694
  r"""Parameters for audio output. Required when audio output is requested with modalities: [\"audio\"]. Learn more."""
1344
1695
 
@@ -1421,10 +1772,26 @@ class ListAgentsFallbackModelConfigurationParameters(BaseModel):
1421
1772
  guardrails: Optional[List[ListAgentsFallbackModelConfigurationGuardrails]] = None
1422
1773
  r"""A list of guardrails to apply to the request."""
1423
1774
 
1775
+ fallbacks: Optional[List[ListAgentsFallbackModelConfigurationFallbacks]] = None
1776
+ r"""Array of fallback models to use if primary model fails"""
1777
+
1778
+ retry: Optional[ListAgentsFallbackModelConfigurationAgentsRetry] = None
1779
+ r"""Retry configuration for the request"""
1780
+
1781
+ cache: Optional[ListAgentsFallbackModelConfigurationCache] = None
1782
+ r"""Cache configuration for the request."""
1783
+
1784
+ load_balancer: Optional[ListAgentsFallbackModelConfigurationLoadBalancer] = None
1785
+ r"""Load balancer configuration for the request."""
1786
+
1787
+ timeout: Optional[ListAgentsFallbackModelConfigurationTimeout] = None
1788
+ r"""Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured."""
1789
+
1424
1790
  @model_serializer(mode="wrap")
1425
1791
  def serialize_model(self, handler):
1426
1792
  optional_fields = set(
1427
1793
  [
1794
+ "name",
1428
1795
  "audio",
1429
1796
  "frequency_penalty",
1430
1797
  "max_tokens",
@@ -1447,6 +1814,11 @@ class ListAgentsFallbackModelConfigurationParameters(BaseModel):
1447
1814
  "parallel_tool_calls",
1448
1815
  "modalities",
1449
1816
  "guardrails",
1817
+ "fallbacks",
1818
+ "retry",
1819
+ "cache",
1820
+ "load_balancer",
1821
+ "timeout",
1450
1822
  ]
1451
1823
  )
1452
1824
  nullable_fields = set(
@@ -776,7 +776,7 @@ class ListDatasetDatapointsEvaluations3(BaseModel):
776
776
 
777
777
  source: Optional[ListDatasetDatapointsEvaluationsDatasetsSource] = "orq"
778
778
 
779
- reviewed_at: Optional[datetime] = parse_datetime("2026-01-20T13:00:33.349Z")
779
+ reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.896Z")
780
780
  r"""The date and time the item was reviewed"""
781
781
 
782
782
  @model_serializer(mode="wrap")
@@ -846,7 +846,7 @@ class ListDatasetDatapointsEvaluations2(BaseModel):
846
846
 
847
847
  source: Optional[ListDatasetDatapointsEvaluationsSource] = "orq"
848
848
 
849
- reviewed_at: Optional[datetime] = parse_datetime("2026-01-20T13:00:33.348Z")
849
+ reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.896Z")
850
850
  r"""The date and time the item was reviewed"""
851
851
 
852
852
  @model_serializer(mode="wrap")
@@ -914,7 +914,7 @@ class ListDatasetDatapointsEvaluations1(BaseModel):
914
914
 
915
915
  source: Optional[ListDatasetDatapointsEvaluationsDatasetsResponseSource] = "orq"
916
916
 
917
- reviewed_at: Optional[datetime] = parse_datetime("2026-01-20T13:00:33.348Z")
917
+ reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.895Z")
918
918
  r"""The date and time the item was reviewed"""
919
919
 
920
920
  @model_serializer(mode="wrap")
@@ -1013,7 +1013,7 @@ class ListDatasetDatapointsData(BaseModel):
1013
1013
  created: Optional[datetime] = None
1014
1014
  r"""The date and time the resource was created"""
1015
1015
 
1016
- updated: Optional[datetime] = parse_datetime("2026-01-20T13:00:20.021Z")
1016
+ updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
1017
1017
  r"""The date and time the resource was last updated"""
1018
1018
 
1019
1019
  @model_serializer(mode="wrap")
@@ -113,7 +113,7 @@ class ListDatasetsData(BaseModel):
113
113
  created: Optional[datetime] = None
114
114
  r"""The date and time the resource was created"""
115
115
 
116
- updated: Optional[datetime] = parse_datetime("2026-01-20T13:00:20.021Z")
116
+ updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
117
117
  r"""The date and time the resource was last updated"""
118
118
 
119
119
  @model_serializer(mode="wrap")
@@ -148,7 +148,7 @@ class ListDatasourcesData(BaseModel):
148
148
  r"""The number of chunks in the datasource"""
149
149
 
150
150
  id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
151
- "01KFDQW6KQTZ79D6KS95E34B87"
151
+ "01KFZBGG943C7DP3QH4D09ATXY"
152
152
  )
153
153
  r"""The unique identifier of the data source"""
154
154
 
@@ -208,7 +208,7 @@ class ListIdentitiesData(BaseModel):
208
208
  created: Optional[datetime] = None
209
209
  r"""The date and time the resource was created"""
210
210
 
211
- updated: Optional[datetime] = parse_datetime("2026-01-20T13:00:20.021Z")
211
+ updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
212
212
  r"""The date and time the resource was last updated"""
213
213
 
214
214
  @model_serializer(mode="wrap")
@@ -17,6 +17,7 @@ ListModelsType = Literal[
17
17
  "tts",
18
18
  "stt",
19
19
  "rerank",
20
+ "ocr",
20
21
  "moderation",
21
22
  "vision",
22
23
  ]