orq-ai-sdk 4.2.17__py3-none-any.whl → 4.3.0rc0__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/_hooks/globalhook.py +1 -0
- orq_ai_sdk/_version.py +3 -3
- orq_ai_sdk/agents.py +186 -186
- orq_ai_sdk/completions.py +1 -107
- orq_ai_sdk/edits.py +1 -107
- orq_ai_sdk/embeddings.py +1 -107
- orq_ai_sdk/generations.py +1 -99
- orq_ai_sdk/models/__init__.py +0 -405
- orq_ai_sdk/models/conversationresponse.py +1 -1
- orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
- orq_ai_sdk/models/createagentrequestop.py +0 -24
- orq_ai_sdk/models/createchatcompletionop.py +0 -6
- orq_ai_sdk/models/createcompletionop.py +30 -218
- 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/createembeddingop.py +26 -221
- orq_ai_sdk/models/createevalop.py +14 -14
- orq_ai_sdk/models/createidentityop.py +1 -1
- orq_ai_sdk/models/createimageeditop.py +31 -242
- orq_ai_sdk/models/createimageop.py +22 -210
- orq_ai_sdk/models/createimagevariationop.py +31 -251
- orq_ai_sdk/models/createpromptop.py +0 -12
- orq_ai_sdk/models/creatererankop.py +26 -218
- orq_ai_sdk/models/createspeechop.py +24 -174
- orq_ai_sdk/models/createtoolop.py +6 -6
- orq_ai_sdk/models/createtranscriptionop.py +10 -180
- orq_ai_sdk/models/createtranslationop.py +10 -172
- 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/getallpromptsop.py +0 -6
- orq_ai_sdk/models/getalltoolsop.py +6 -6
- orq_ai_sdk/models/getevalsop.py +14 -14
- orq_ai_sdk/models/getonepromptop.py +0 -6
- orq_ai_sdk/models/getpromptversionop.py +0 -6
- orq_ai_sdk/models/listagentsop.py +0 -12
- 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/listpromptversionsop.py +0 -6
- orq_ai_sdk/models/partdoneevent.py +1 -1
- orq_ai_sdk/models/reasoningpart.py +1 -1
- orq_ai_sdk/models/retrieveagentrequestop.py +0 -12
- 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 -13
- orq_ai_sdk/models/streamrunagentop.py +1 -13
- orq_ai_sdk/models/updateagentop.py +0 -24
- 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/updatepromptop.py +0 -12
- orq_ai_sdk/models/updatetoolop.py +7 -7
- orq_ai_sdk/orq_completions.py +0 -6
- orq_ai_sdk/rerank.py +0 -98
- orq_ai_sdk/speech.py +1 -83
- orq_ai_sdk/transcriptions.py +0 -90
- orq_ai_sdk/translations.py +1 -87
- orq_ai_sdk/variations.py +1 -111
- {orq_ai_sdk-4.2.17.dist-info → orq_ai_sdk-4.3.0rc0.dist-info}/METADATA +202 -202
- {orq_ai_sdk-4.2.17.dist-info → orq_ai_sdk-4.3.0rc0.dist-info}/RECORD +75 -75
- {orq_ai_sdk-4.2.17.dist-info → orq_ai_sdk-4.3.0rc0.dist-info}/WHEEL +1 -1
- {orq_ai_sdk-4.2.17.dist-info → orq_ai_sdk-4.3.0rc0.dist-info}/top_level.txt +0 -0
|
@@ -37,41 +37,6 @@ class CreateEmbeddingFallbacks(BaseModel):
|
|
|
37
37
|
r"""Fallback model identifier"""
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
class CreateEmbeddingRetryTypedDict(TypedDict):
|
|
41
|
-
r"""Retry configuration for the request"""
|
|
42
|
-
|
|
43
|
-
count: NotRequired[float]
|
|
44
|
-
r"""Number of retry attempts (1-5)"""
|
|
45
|
-
on_codes: NotRequired[List[float]]
|
|
46
|
-
r"""HTTP status codes that trigger retry logic"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class CreateEmbeddingRetry(BaseModel):
|
|
50
|
-
r"""Retry configuration for the request"""
|
|
51
|
-
|
|
52
|
-
count: Optional[float] = 3
|
|
53
|
-
r"""Number of retry attempts (1-5)"""
|
|
54
|
-
|
|
55
|
-
on_codes: Optional[List[float]] = None
|
|
56
|
-
r"""HTTP status codes that trigger retry logic"""
|
|
57
|
-
|
|
58
|
-
@model_serializer(mode="wrap")
|
|
59
|
-
def serialize_model(self, handler):
|
|
60
|
-
optional_fields = set(["count", "on_codes"])
|
|
61
|
-
serialized = handler(self)
|
|
62
|
-
m = {}
|
|
63
|
-
|
|
64
|
-
for n, f in type(self).model_fields.items():
|
|
65
|
-
k = f.alias or n
|
|
66
|
-
val = serialized.get(k)
|
|
67
|
-
|
|
68
|
-
if val != UNSET_SENTINEL:
|
|
69
|
-
if val is not None or k not in optional_fields:
|
|
70
|
-
m[k] = val
|
|
71
|
-
|
|
72
|
-
return m
|
|
73
|
-
|
|
74
|
-
|
|
75
40
|
CreateEmbeddingType = Literal["exact_match",]
|
|
76
41
|
|
|
77
42
|
|
|
@@ -108,120 +73,7 @@ class CreateEmbeddingCache(BaseModel):
|
|
|
108
73
|
return m
|
|
109
74
|
|
|
110
75
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
class CreateEmbeddingLoadBalancerModelsTypedDict(TypedDict):
|
|
115
|
-
model: str
|
|
116
|
-
r"""Model identifier for load balancing"""
|
|
117
|
-
weight: NotRequired[float]
|
|
118
|
-
r"""Weight assigned to this model for load balancing"""
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class CreateEmbeddingLoadBalancerModels(BaseModel):
|
|
122
|
-
model: str
|
|
123
|
-
r"""Model identifier for load balancing"""
|
|
124
|
-
|
|
125
|
-
weight: Optional[float] = 0.5
|
|
126
|
-
r"""Weight assigned to this model for load balancing"""
|
|
127
|
-
|
|
128
|
-
@model_serializer(mode="wrap")
|
|
129
|
-
def serialize_model(self, handler):
|
|
130
|
-
optional_fields = set(["weight"])
|
|
131
|
-
serialized = handler(self)
|
|
132
|
-
m = {}
|
|
133
|
-
|
|
134
|
-
for n, f in type(self).model_fields.items():
|
|
135
|
-
k = f.alias or n
|
|
136
|
-
val = serialized.get(k)
|
|
137
|
-
|
|
138
|
-
if val != UNSET_SENTINEL:
|
|
139
|
-
if val is not None or k not in optional_fields:
|
|
140
|
-
m[k] = val
|
|
141
|
-
|
|
142
|
-
return m
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
class CreateEmbeddingLoadBalancer1TypedDict(TypedDict):
|
|
146
|
-
type: CreateEmbeddingLoadBalancerType
|
|
147
|
-
models: List[CreateEmbeddingLoadBalancerModelsTypedDict]
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
class CreateEmbeddingLoadBalancer1(BaseModel):
|
|
151
|
-
type: CreateEmbeddingLoadBalancerType
|
|
152
|
-
|
|
153
|
-
models: List[CreateEmbeddingLoadBalancerModels]
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
CreateEmbeddingLoadBalancerTypedDict = CreateEmbeddingLoadBalancer1TypedDict
|
|
157
|
-
r"""Load balancer configuration for the request."""
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
CreateEmbeddingLoadBalancer = CreateEmbeddingLoadBalancer1
|
|
161
|
-
r"""Load balancer configuration for the request."""
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
class CreateEmbeddingTimeoutTypedDict(TypedDict):
|
|
165
|
-
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."""
|
|
166
|
-
|
|
167
|
-
call_timeout: float
|
|
168
|
-
r"""Timeout value in milliseconds"""
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
class CreateEmbeddingTimeout(BaseModel):
|
|
172
|
-
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."""
|
|
173
|
-
|
|
174
|
-
call_timeout: float
|
|
175
|
-
r"""Timeout value in milliseconds"""
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
class CreateEmbeddingRouterEmbeddingsFallbacksTypedDict(TypedDict):
|
|
179
|
-
model: str
|
|
180
|
-
r"""Fallback model identifier"""
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
class CreateEmbeddingRouterEmbeddingsFallbacks(BaseModel):
|
|
184
|
-
model: str
|
|
185
|
-
r"""Fallback model identifier"""
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
CreateEmbeddingRouterEmbeddingsType = Literal["exact_match",]
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
class CreateEmbeddingRouterEmbeddingsCacheTypedDict(TypedDict):
|
|
192
|
-
r"""Cache configuration for the request."""
|
|
193
|
-
|
|
194
|
-
type: CreateEmbeddingRouterEmbeddingsType
|
|
195
|
-
ttl: NotRequired[float]
|
|
196
|
-
r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
class CreateEmbeddingRouterEmbeddingsCache(BaseModel):
|
|
200
|
-
r"""Cache configuration for the request."""
|
|
201
|
-
|
|
202
|
-
type: CreateEmbeddingRouterEmbeddingsType
|
|
203
|
-
|
|
204
|
-
ttl: Optional[float] = 1800
|
|
205
|
-
r"""Time to live for cached responses in seconds. Maximum 259200 seconds (3 days)."""
|
|
206
|
-
|
|
207
|
-
@model_serializer(mode="wrap")
|
|
208
|
-
def serialize_model(self, handler):
|
|
209
|
-
optional_fields = set(["ttl"])
|
|
210
|
-
serialized = handler(self)
|
|
211
|
-
m = {}
|
|
212
|
-
|
|
213
|
-
for n, f in type(self).model_fields.items():
|
|
214
|
-
k = f.alias or n
|
|
215
|
-
val = serialized.get(k)
|
|
216
|
-
|
|
217
|
-
if val != UNSET_SENTINEL:
|
|
218
|
-
if val is not None or k not in optional_fields:
|
|
219
|
-
m[k] = val
|
|
220
|
-
|
|
221
|
-
return m
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
class CreateEmbeddingRouterEmbeddingsRetryTypedDict(TypedDict):
|
|
76
|
+
class CreateEmbeddingRetryTypedDict(TypedDict):
|
|
225
77
|
r"""Retry configuration for the request"""
|
|
226
78
|
|
|
227
79
|
count: NotRequired[float]
|
|
@@ -230,7 +82,7 @@ class CreateEmbeddingRouterEmbeddingsRetryTypedDict(TypedDict):
|
|
|
230
82
|
r"""HTTP status codes that trigger retry logic"""
|
|
231
83
|
|
|
232
84
|
|
|
233
|
-
class
|
|
85
|
+
class CreateEmbeddingRetry(BaseModel):
|
|
234
86
|
r"""Retry configuration for the request"""
|
|
235
87
|
|
|
236
88
|
count: Optional[float] = 3
|
|
@@ -256,17 +108,17 @@ class CreateEmbeddingRouterEmbeddingsRetry(BaseModel):
|
|
|
256
108
|
return m
|
|
257
109
|
|
|
258
110
|
|
|
259
|
-
|
|
111
|
+
CreateEmbeddingLoadBalancerType = Literal["weight_based",]
|
|
260
112
|
|
|
261
113
|
|
|
262
|
-
class
|
|
114
|
+
class CreateEmbeddingLoadBalancerModelsTypedDict(TypedDict):
|
|
263
115
|
model: str
|
|
264
116
|
r"""Model identifier for load balancing"""
|
|
265
117
|
weight: NotRequired[float]
|
|
266
118
|
r"""Weight assigned to this model for load balancing"""
|
|
267
119
|
|
|
268
120
|
|
|
269
|
-
class
|
|
121
|
+
class CreateEmbeddingLoadBalancerModels(BaseModel):
|
|
270
122
|
model: str
|
|
271
123
|
r"""Model identifier for load balancing"""
|
|
272
124
|
|
|
@@ -290,37 +142,33 @@ class CreateEmbeddingLoadBalancerRouterEmbeddingsModels(BaseModel):
|
|
|
290
142
|
return m
|
|
291
143
|
|
|
292
144
|
|
|
293
|
-
class
|
|
294
|
-
type:
|
|
295
|
-
models: List[
|
|
145
|
+
class CreateEmbeddingLoadBalancer1TypedDict(TypedDict):
|
|
146
|
+
type: CreateEmbeddingLoadBalancerType
|
|
147
|
+
models: List[CreateEmbeddingLoadBalancerModelsTypedDict]
|
|
296
148
|
|
|
297
149
|
|
|
298
|
-
class
|
|
299
|
-
type:
|
|
150
|
+
class CreateEmbeddingLoadBalancer1(BaseModel):
|
|
151
|
+
type: CreateEmbeddingLoadBalancerType
|
|
300
152
|
|
|
301
|
-
models: List[
|
|
153
|
+
models: List[CreateEmbeddingLoadBalancerModels]
|
|
302
154
|
|
|
303
155
|
|
|
304
|
-
|
|
305
|
-
CreateEmbeddingLoadBalancerRouterEmbeddings1TypedDict
|
|
306
|
-
)
|
|
156
|
+
CreateEmbeddingLoadBalancerTypedDict = CreateEmbeddingLoadBalancer1TypedDict
|
|
307
157
|
r"""Array of models with weights for load balancing requests"""
|
|
308
158
|
|
|
309
159
|
|
|
310
|
-
|
|
311
|
-
CreateEmbeddingLoadBalancerRouterEmbeddings1
|
|
312
|
-
)
|
|
160
|
+
CreateEmbeddingLoadBalancer = CreateEmbeddingLoadBalancer1
|
|
313
161
|
r"""Array of models with weights for load balancing requests"""
|
|
314
162
|
|
|
315
163
|
|
|
316
|
-
class
|
|
164
|
+
class CreateEmbeddingTimeoutTypedDict(TypedDict):
|
|
317
165
|
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."""
|
|
318
166
|
|
|
319
167
|
call_timeout: float
|
|
320
168
|
r"""Timeout value in milliseconds"""
|
|
321
169
|
|
|
322
170
|
|
|
323
|
-
class
|
|
171
|
+
class CreateEmbeddingTimeout(BaseModel):
|
|
324
172
|
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."""
|
|
325
173
|
|
|
326
174
|
call_timeout: float
|
|
@@ -330,19 +178,19 @@ class CreateEmbeddingRouterEmbeddingsTimeout(BaseModel):
|
|
|
330
178
|
class CreateEmbeddingOrqTypedDict(TypedDict):
|
|
331
179
|
name: NotRequired[str]
|
|
332
180
|
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
333
|
-
fallbacks: NotRequired[List[
|
|
181
|
+
fallbacks: NotRequired[List[CreateEmbeddingFallbacksTypedDict]]
|
|
334
182
|
r"""Array of fallback models to use if primary model fails"""
|
|
335
|
-
cache: NotRequired[
|
|
183
|
+
cache: NotRequired[CreateEmbeddingCacheTypedDict]
|
|
336
184
|
r"""Cache configuration for the request."""
|
|
337
|
-
retry: NotRequired[
|
|
185
|
+
retry: NotRequired[CreateEmbeddingRetryTypedDict]
|
|
338
186
|
r"""Retry configuration for the request"""
|
|
339
187
|
identity: NotRequired[PublicIdentityTypedDict]
|
|
340
188
|
r"""Information about the identity making the request. If the identity does not exist, it will be created automatically."""
|
|
341
189
|
contact: NotRequired[PublicContactTypedDict]
|
|
342
190
|
r"""@deprecated Use identity instead. Information about the contact making the request."""
|
|
343
|
-
load_balancer: NotRequired[
|
|
191
|
+
load_balancer: NotRequired[CreateEmbeddingLoadBalancerTypedDict]
|
|
344
192
|
r"""Array of models with weights for load balancing requests"""
|
|
345
|
-
timeout: NotRequired[
|
|
193
|
+
timeout: NotRequired[CreateEmbeddingTimeoutTypedDict]
|
|
346
194
|
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."""
|
|
347
195
|
|
|
348
196
|
|
|
@@ -350,13 +198,13 @@ class CreateEmbeddingOrq(BaseModel):
|
|
|
350
198
|
name: Optional[str] = None
|
|
351
199
|
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
352
200
|
|
|
353
|
-
fallbacks: Optional[List[
|
|
201
|
+
fallbacks: Optional[List[CreateEmbeddingFallbacks]] = None
|
|
354
202
|
r"""Array of fallback models to use if primary model fails"""
|
|
355
203
|
|
|
356
|
-
cache: Optional[
|
|
204
|
+
cache: Optional[CreateEmbeddingCache] = None
|
|
357
205
|
r"""Cache configuration for the request."""
|
|
358
206
|
|
|
359
|
-
retry: Optional[
|
|
207
|
+
retry: Optional[CreateEmbeddingRetry] = None
|
|
360
208
|
r"""Retry configuration for the request"""
|
|
361
209
|
|
|
362
210
|
identity: Optional[PublicIdentity] = None
|
|
@@ -370,10 +218,10 @@ class CreateEmbeddingOrq(BaseModel):
|
|
|
370
218
|
] = None
|
|
371
219
|
r"""@deprecated Use identity instead. Information about the contact making the request."""
|
|
372
220
|
|
|
373
|
-
load_balancer: Optional[
|
|
221
|
+
load_balancer: Optional[CreateEmbeddingLoadBalancer] = None
|
|
374
222
|
r"""Array of models with weights for load balancing requests"""
|
|
375
223
|
|
|
376
|
-
timeout: Optional[
|
|
224
|
+
timeout: Optional[CreateEmbeddingTimeout] = None
|
|
377
225
|
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."""
|
|
378
226
|
|
|
379
227
|
@model_serializer(mode="wrap")
|
|
@@ -417,18 +265,6 @@ class CreateEmbeddingRequestBodyTypedDict(TypedDict):
|
|
|
417
265
|
r"""The number of dimensions the resulting output embeddings should have."""
|
|
418
266
|
user: NotRequired[str]
|
|
419
267
|
r"""A unique identifier representing your end-user"""
|
|
420
|
-
name: NotRequired[str]
|
|
421
|
-
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
422
|
-
fallbacks: NotRequired[List[CreateEmbeddingFallbacksTypedDict]]
|
|
423
|
-
r"""Array of fallback models to use if primary model fails"""
|
|
424
|
-
retry: NotRequired[CreateEmbeddingRetryTypedDict]
|
|
425
|
-
r"""Retry configuration for the request"""
|
|
426
|
-
cache: NotRequired[CreateEmbeddingCacheTypedDict]
|
|
427
|
-
r"""Cache configuration for the request."""
|
|
428
|
-
load_balancer: NotRequired[CreateEmbeddingLoadBalancerTypedDict]
|
|
429
|
-
r"""Load balancer configuration for the request."""
|
|
430
|
-
timeout: NotRequired[CreateEmbeddingTimeoutTypedDict]
|
|
431
|
-
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."""
|
|
432
268
|
orq: NotRequired[CreateEmbeddingOrqTypedDict]
|
|
433
269
|
|
|
434
270
|
|
|
@@ -450,42 +286,11 @@ class CreateEmbeddingRequestBody(BaseModel):
|
|
|
450
286
|
user: Optional[str] = None
|
|
451
287
|
r"""A unique identifier representing your end-user"""
|
|
452
288
|
|
|
453
|
-
name: Optional[str] = None
|
|
454
|
-
r"""The name to display on the trace. If not specified, the default system name will be used."""
|
|
455
|
-
|
|
456
|
-
fallbacks: Optional[List[CreateEmbeddingFallbacks]] = None
|
|
457
|
-
r"""Array of fallback models to use if primary model fails"""
|
|
458
|
-
|
|
459
|
-
retry: Optional[CreateEmbeddingRetry] = None
|
|
460
|
-
r"""Retry configuration for the request"""
|
|
461
|
-
|
|
462
|
-
cache: Optional[CreateEmbeddingCache] = None
|
|
463
|
-
r"""Cache configuration for the request."""
|
|
464
|
-
|
|
465
|
-
load_balancer: Optional[CreateEmbeddingLoadBalancer] = None
|
|
466
|
-
r"""Load balancer configuration for the request."""
|
|
467
|
-
|
|
468
|
-
timeout: Optional[CreateEmbeddingTimeout] = None
|
|
469
|
-
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."""
|
|
470
|
-
|
|
471
289
|
orq: Optional[CreateEmbeddingOrq] = None
|
|
472
290
|
|
|
473
291
|
@model_serializer(mode="wrap")
|
|
474
292
|
def serialize_model(self, handler):
|
|
475
|
-
optional_fields = set(
|
|
476
|
-
[
|
|
477
|
-
"encoding_format",
|
|
478
|
-
"dimensions",
|
|
479
|
-
"user",
|
|
480
|
-
"name",
|
|
481
|
-
"fallbacks",
|
|
482
|
-
"retry",
|
|
483
|
-
"cache",
|
|
484
|
-
"load_balancer",
|
|
485
|
-
"timeout",
|
|
486
|
-
"orq",
|
|
487
|
-
]
|
|
488
|
-
)
|
|
293
|
+
optional_fields = set(["encoding_format", "dimensions", "user", "orq"])
|
|
489
294
|
serialized = handler(self)
|
|
490
295
|
m = {}
|
|
491
296
|
|
|
@@ -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-24T23:05:33.746Z"
|
|
888
888
|
|
|
889
|
-
updated: Optional[str] = "2026-01-
|
|
889
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
1084
1084
|
|
|
1085
|
-
updated: Optional[str] = "2026-01-
|
|
1085
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
1779
1779
|
|
|
1780
|
-
updated: Optional[str] = "2026-01-
|
|
1780
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
1956
1956
|
|
|
1957
|
-
updated: Optional[str] = "2026-01-
|
|
1957
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
2138
2138
|
|
|
2139
|
-
updated: Optional[str] = "2026-01-
|
|
2139
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
2291
2291
|
|
|
2292
|
-
updated: Optional[str] = "2026-01-
|
|
2292
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:33.746Z"
|
|
2445
2445
|
|
|
2446
|
-
updated: Optional[str] = "2026-01-
|
|
2446
|
+
updated: Optional[str] = "2026-01-24T23:05:33.746Z"
|
|
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-24T23:05:31.950Z")
|
|
141
141
|
r"""The date and time the resource was last updated"""
|
|
142
142
|
|
|
143
143
|
@model_serializer(mode="wrap")
|