@orq-ai/node 4.2.0-rc.61 → 4.2.0-rc.64
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.
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +66 -22
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +50 -17
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +39 -13
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +27 -9
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +19 -6
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +13 -4
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +19 -6
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +13 -4
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +19 -6
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +12 -4
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +19 -6
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +13 -4
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +19 -6
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +13 -4
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/createprompt.d.ts +33 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +26 -9
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +19 -6
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +12 -4
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +19 -6
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +12 -4
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +24 -6
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +14 -4
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +24 -6
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +14 -4
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getallprompts.d.ts +13 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +13 -5
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +14 -14
- package/models/operations/getoneprompt.d.ts +13 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +13 -5
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +14 -5
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +26 -8
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +25 -9
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listcontacts.js +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listpromptversions.d.ts +13 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +14 -5
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +26 -8
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +25 -8
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +40 -14
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +27 -11
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +40 -14
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +28 -10
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +66 -22
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +50 -17
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatecontact.js +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updateprompt.d.ts +33 -11
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +26 -9
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +152 -40
- package/src/models/operations/createchatcompletion.ts +94 -24
- package/src/models/operations/createcompletion.ts +43 -11
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +43 -11
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +40 -9
- package/src/models/operations/createimageedit.ts +43 -11
- package/src/models/operations/createimagevariation.ts +44 -11
- package/src/models/operations/createprompt.ts +78 -19
- package/src/models/operations/creatererank.ts +40 -9
- package/src/models/operations/createspeech.ts +40 -9
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +49 -11
- package/src/models/operations/createtranslation.ts +49 -11
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getallprompts.ts +33 -7
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +14 -14
- package/src/models/operations/getoneprompt.ts +33 -7
- package/src/models/operations/getpromptversion.ts +37 -9
- package/src/models/operations/listagents.ts +70 -17
- package/src/models/operations/listcontacts.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listpromptversions.ts +37 -9
- package/src/models/operations/retrieveagentrequest.ts +80 -17
- package/src/models/operations/retrievecontact.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +84 -24
- package/src/models/operations/streamrunagent.ts +90 -25
- package/src/models/operations/updateagent.ts +171 -38
- package/src/models/operations/updatecontact.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updateprompt.ts +78 -19
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -281,8 +281,7 @@ export const LoadBalancerType = {
|
|
|
281
281
|
} as const;
|
|
282
282
|
export type LoadBalancerType = ClosedEnum<typeof LoadBalancerType>;
|
|
283
283
|
|
|
284
|
-
export type
|
|
285
|
-
type: LoadBalancerType;
|
|
284
|
+
export type Models = {
|
|
286
285
|
/**
|
|
287
286
|
* Model identifier for load balancing
|
|
288
287
|
*/
|
|
@@ -293,6 +292,14 @@ export type LoadBalancer1 = {
|
|
|
293
292
|
weight?: number | undefined;
|
|
294
293
|
};
|
|
295
294
|
|
|
295
|
+
export type LoadBalancer1 = {
|
|
296
|
+
type: LoadBalancerType;
|
|
297
|
+
models: Array<Models>;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Load balancer configuration for the request.
|
|
302
|
+
*/
|
|
296
303
|
export type LoadBalancer = LoadBalancer1;
|
|
297
304
|
|
|
298
305
|
/**
|
|
@@ -423,9 +430,9 @@ export type ParametersT = {
|
|
|
423
430
|
*/
|
|
424
431
|
cache?: Cache | undefined;
|
|
425
432
|
/**
|
|
426
|
-
*
|
|
433
|
+
* Load balancer configuration for the request.
|
|
427
434
|
*/
|
|
428
|
-
loadBalancer?:
|
|
435
|
+
loadBalancer?: LoadBalancer1 | undefined;
|
|
429
436
|
/**
|
|
430
437
|
* 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.
|
|
431
438
|
*/
|
|
@@ -765,8 +772,7 @@ export type CreateAgentRequestLoadBalancerType = ClosedEnum<
|
|
|
765
772
|
typeof CreateAgentRequestLoadBalancerType
|
|
766
773
|
>;
|
|
767
774
|
|
|
768
|
-
export type
|
|
769
|
-
type: CreateAgentRequestLoadBalancerType;
|
|
775
|
+
export type LoadBalancerModels = {
|
|
770
776
|
/**
|
|
771
777
|
* Model identifier for load balancing
|
|
772
778
|
*/
|
|
@@ -777,6 +783,14 @@ export type CreateAgentRequestLoadBalancer1 = {
|
|
|
777
783
|
weight?: number | undefined;
|
|
778
784
|
};
|
|
779
785
|
|
|
786
|
+
export type CreateAgentRequestLoadBalancer1 = {
|
|
787
|
+
type: CreateAgentRequestLoadBalancerType;
|
|
788
|
+
models: Array<LoadBalancerModels>;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Load balancer configuration for the request.
|
|
793
|
+
*/
|
|
780
794
|
export type FallbackModelConfigurationLoadBalancer =
|
|
781
795
|
CreateAgentRequestLoadBalancer1;
|
|
782
796
|
|
|
@@ -915,9 +929,9 @@ export type FallbackModelConfigurationParameters = {
|
|
|
915
929
|
*/
|
|
916
930
|
cache?: FallbackModelConfigurationCache | undefined;
|
|
917
931
|
/**
|
|
918
|
-
*
|
|
932
|
+
* Load balancer configuration for the request.
|
|
919
933
|
*/
|
|
920
|
-
loadBalancer?:
|
|
934
|
+
loadBalancer?: CreateAgentRequestLoadBalancer1 | undefined;
|
|
921
935
|
/**
|
|
922
936
|
* 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.
|
|
923
937
|
*/
|
|
@@ -2053,8 +2067,7 @@ export type CreateAgentRequestLoadBalancerAgentsType = ClosedEnum<
|
|
|
2053
2067
|
typeof CreateAgentRequestLoadBalancerAgentsType
|
|
2054
2068
|
>;
|
|
2055
2069
|
|
|
2056
|
-
export type
|
|
2057
|
-
type: CreateAgentRequestLoadBalancerAgentsType;
|
|
2070
|
+
export type CreateAgentRequestLoadBalancerModels = {
|
|
2058
2071
|
/**
|
|
2059
2072
|
* Model identifier for load balancing
|
|
2060
2073
|
*/
|
|
@@ -2065,6 +2078,14 @@ export type CreateAgentRequestLoadBalancerAgents1 = {
|
|
|
2065
2078
|
weight: number;
|
|
2066
2079
|
};
|
|
2067
2080
|
|
|
2081
|
+
export type CreateAgentRequestLoadBalancerAgents1 = {
|
|
2082
|
+
type: CreateAgentRequestLoadBalancerAgentsType;
|
|
2083
|
+
models: Array<CreateAgentRequestLoadBalancerModels>;
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Load balancer configuration for the request.
|
|
2088
|
+
*/
|
|
2068
2089
|
export type CreateAgentRequestLoadBalancer =
|
|
2069
2090
|
CreateAgentRequestLoadBalancerAgents1;
|
|
2070
2091
|
|
|
@@ -2203,9 +2224,9 @@ export type CreateAgentRequestParameters = {
|
|
|
2203
2224
|
*/
|
|
2204
2225
|
cache?: CreateAgentRequestCache | undefined;
|
|
2205
2226
|
/**
|
|
2206
|
-
*
|
|
2227
|
+
* Load balancer configuration for the request.
|
|
2207
2228
|
*/
|
|
2208
|
-
loadBalancer?:
|
|
2229
|
+
loadBalancer?: CreateAgentRequestLoadBalancerAgents1 | undefined;
|
|
2209
2230
|
/**
|
|
2210
2231
|
* 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.
|
|
2211
2232
|
*/
|
|
@@ -2530,8 +2551,7 @@ export type CreateAgentRequestLoadBalancerAgentsResponseType = ClosedEnum<
|
|
|
2530
2551
|
typeof CreateAgentRequestLoadBalancerAgentsResponseType
|
|
2531
2552
|
>;
|
|
2532
2553
|
|
|
2533
|
-
export type
|
|
2534
|
-
type: CreateAgentRequestLoadBalancerAgentsResponseType;
|
|
2554
|
+
export type CreateAgentRequestLoadBalancerAgentsModels = {
|
|
2535
2555
|
/**
|
|
2536
2556
|
* Model identifier for load balancing
|
|
2537
2557
|
*/
|
|
@@ -2542,6 +2562,14 @@ export type CreateAgentRequestLoadBalancerAgentsResponse1 = {
|
|
|
2542
2562
|
weight: number;
|
|
2543
2563
|
};
|
|
2544
2564
|
|
|
2565
|
+
export type CreateAgentRequestLoadBalancerAgentsResponse1 = {
|
|
2566
|
+
type: CreateAgentRequestLoadBalancerAgentsResponseType;
|
|
2567
|
+
models: Array<CreateAgentRequestLoadBalancerAgentsModels>;
|
|
2568
|
+
};
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Load balancer configuration for the request.
|
|
2572
|
+
*/
|
|
2545
2573
|
export type CreateAgentRequestFallbackModelConfigurationLoadBalancer =
|
|
2546
2574
|
CreateAgentRequestLoadBalancerAgentsResponse1;
|
|
2547
2575
|
|
|
@@ -2694,11 +2722,9 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2694
2722
|
*/
|
|
2695
2723
|
cache?: CreateAgentRequestFallbackModelConfigurationCache | undefined;
|
|
2696
2724
|
/**
|
|
2697
|
-
*
|
|
2725
|
+
* Load balancer configuration for the request.
|
|
2698
2726
|
*/
|
|
2699
|
-
loadBalancer?:
|
|
2700
|
-
| Array<CreateAgentRequestLoadBalancerAgentsResponse1>
|
|
2701
|
-
| undefined;
|
|
2727
|
+
loadBalancer?: CreateAgentRequestLoadBalancerAgentsResponse1 | undefined;
|
|
2702
2728
|
/**
|
|
2703
2729
|
* 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.
|
|
2704
2730
|
*/
|
|
@@ -3244,12 +3270,31 @@ export const LoadBalancerType$outboundSchema: z.ZodNativeEnum<
|
|
|
3244
3270
|
> = z.nativeEnum(LoadBalancerType);
|
|
3245
3271
|
|
|
3246
3272
|
/** @internal */
|
|
3247
|
-
export type
|
|
3248
|
-
type: string;
|
|
3273
|
+
export type Models$Outbound = {
|
|
3249
3274
|
model: string;
|
|
3250
3275
|
weight: number;
|
|
3251
3276
|
};
|
|
3252
3277
|
|
|
3278
|
+
/** @internal */
|
|
3279
|
+
export const Models$outboundSchema: z.ZodType<
|
|
3280
|
+
Models$Outbound,
|
|
3281
|
+
z.ZodTypeDef,
|
|
3282
|
+
Models
|
|
3283
|
+
> = z.object({
|
|
3284
|
+
model: z.string(),
|
|
3285
|
+
weight: z.number().default(0.5),
|
|
3286
|
+
});
|
|
3287
|
+
|
|
3288
|
+
export function modelsToJSON(models: Models): string {
|
|
3289
|
+
return JSON.stringify(Models$outboundSchema.parse(models));
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
/** @internal */
|
|
3293
|
+
export type LoadBalancer1$Outbound = {
|
|
3294
|
+
type: string;
|
|
3295
|
+
models: Array<Models$Outbound>;
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3253
3298
|
/** @internal */
|
|
3254
3299
|
export const LoadBalancer1$outboundSchema: z.ZodType<
|
|
3255
3300
|
LoadBalancer1$Outbound,
|
|
@@ -3257,8 +3302,7 @@ export const LoadBalancer1$outboundSchema: z.ZodType<
|
|
|
3257
3302
|
LoadBalancer1
|
|
3258
3303
|
> = z.object({
|
|
3259
3304
|
type: LoadBalancerType$outboundSchema,
|
|
3260
|
-
|
|
3261
|
-
weight: z.number().default(0.5),
|
|
3305
|
+
models: z.array(z.lazy(() => Models$outboundSchema)),
|
|
3262
3306
|
});
|
|
3263
3307
|
|
|
3264
3308
|
export function loadBalancer1ToJSON(loadBalancer1: LoadBalancer1): string {
|
|
@@ -3335,7 +3379,7 @@ export type ParametersT$Outbound = {
|
|
|
3335
3379
|
fallbacks?: Array<Fallbacks$Outbound> | undefined;
|
|
3336
3380
|
retry?: Retry$Outbound | undefined;
|
|
3337
3381
|
cache?: Cache$Outbound | undefined;
|
|
3338
|
-
load_balancer?:
|
|
3382
|
+
load_balancer?: LoadBalancer1$Outbound | undefined;
|
|
3339
3383
|
timeout?: Timeout$Outbound | undefined;
|
|
3340
3384
|
};
|
|
3341
3385
|
|
|
@@ -3382,7 +3426,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3382
3426
|
fallbacks: z.array(z.lazy(() => Fallbacks$outboundSchema)).optional(),
|
|
3383
3427
|
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
3384
3428
|
cache: z.lazy(() => Cache$outboundSchema).optional(),
|
|
3385
|
-
loadBalancer: z.
|
|
3429
|
+
loadBalancer: z.lazy(() => LoadBalancer1$outboundSchema).optional(),
|
|
3386
3430
|
timeout: z.lazy(() => Timeout$outboundSchema).optional(),
|
|
3387
3431
|
}).transform((v) => {
|
|
3388
3432
|
return remap$(v, {
|
|
@@ -3974,12 +4018,35 @@ export const CreateAgentRequestLoadBalancerType$outboundSchema: z.ZodNativeEnum<
|
|
|
3974
4018
|
> = z.nativeEnum(CreateAgentRequestLoadBalancerType);
|
|
3975
4019
|
|
|
3976
4020
|
/** @internal */
|
|
3977
|
-
export type
|
|
3978
|
-
type: string;
|
|
4021
|
+
export type LoadBalancerModels$Outbound = {
|
|
3979
4022
|
model: string;
|
|
3980
4023
|
weight: number;
|
|
3981
4024
|
};
|
|
3982
4025
|
|
|
4026
|
+
/** @internal */
|
|
4027
|
+
export const LoadBalancerModels$outboundSchema: z.ZodType<
|
|
4028
|
+
LoadBalancerModels$Outbound,
|
|
4029
|
+
z.ZodTypeDef,
|
|
4030
|
+
LoadBalancerModels
|
|
4031
|
+
> = z.object({
|
|
4032
|
+
model: z.string(),
|
|
4033
|
+
weight: z.number().default(0.5),
|
|
4034
|
+
});
|
|
4035
|
+
|
|
4036
|
+
export function loadBalancerModelsToJSON(
|
|
4037
|
+
loadBalancerModels: LoadBalancerModels,
|
|
4038
|
+
): string {
|
|
4039
|
+
return JSON.stringify(
|
|
4040
|
+
LoadBalancerModels$outboundSchema.parse(loadBalancerModels),
|
|
4041
|
+
);
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
/** @internal */
|
|
4045
|
+
export type CreateAgentRequestLoadBalancer1$Outbound = {
|
|
4046
|
+
type: string;
|
|
4047
|
+
models: Array<LoadBalancerModels$Outbound>;
|
|
4048
|
+
};
|
|
4049
|
+
|
|
3983
4050
|
/** @internal */
|
|
3984
4051
|
export const CreateAgentRequestLoadBalancer1$outboundSchema: z.ZodType<
|
|
3985
4052
|
CreateAgentRequestLoadBalancer1$Outbound,
|
|
@@ -3987,8 +4054,7 @@ export const CreateAgentRequestLoadBalancer1$outboundSchema: z.ZodType<
|
|
|
3987
4054
|
CreateAgentRequestLoadBalancer1
|
|
3988
4055
|
> = z.object({
|
|
3989
4056
|
type: CreateAgentRequestLoadBalancerType$outboundSchema,
|
|
3990
|
-
|
|
3991
|
-
weight: z.number().default(0.5),
|
|
4057
|
+
models: z.array(z.lazy(() => LoadBalancerModels$outboundSchema)),
|
|
3992
4058
|
});
|
|
3993
4059
|
|
|
3994
4060
|
export function createAgentRequestLoadBalancer1ToJSON(
|
|
@@ -4088,7 +4154,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
4088
4154
|
fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
|
|
4089
4155
|
retry?: FallbackModelConfigurationRetry$Outbound | undefined;
|
|
4090
4156
|
cache?: FallbackModelConfigurationCache$Outbound | undefined;
|
|
4091
|
-
load_balancer?:
|
|
4157
|
+
load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
|
|
4092
4158
|
timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
|
|
4093
4159
|
};
|
|
4094
4160
|
|
|
@@ -4146,9 +4212,8 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4146
4212
|
.optional(),
|
|
4147
4213
|
cache: z.lazy(() => FallbackModelConfigurationCache$outboundSchema)
|
|
4148
4214
|
.optional(),
|
|
4149
|
-
loadBalancer: z.
|
|
4150
|
-
|
|
4151
|
-
).optional(),
|
|
4215
|
+
loadBalancer: z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema)
|
|
4216
|
+
.optional(),
|
|
4152
4217
|
timeout: z.lazy(() => FallbackModelConfigurationTimeout$outboundSchema)
|
|
4153
4218
|
.optional(),
|
|
4154
4219
|
}).transform((v) => {
|
|
@@ -5766,6 +5831,27 @@ export const CreateAgentRequestLoadBalancerAgentsType$inboundSchema:
|
|
|
5766
5831
|
z.ZodNativeEnum<typeof CreateAgentRequestLoadBalancerAgentsType> = z
|
|
5767
5832
|
.nativeEnum(CreateAgentRequestLoadBalancerAgentsType);
|
|
5768
5833
|
|
|
5834
|
+
/** @internal */
|
|
5835
|
+
export const CreateAgentRequestLoadBalancerModels$inboundSchema: z.ZodType<
|
|
5836
|
+
CreateAgentRequestLoadBalancerModels,
|
|
5837
|
+
z.ZodTypeDef,
|
|
5838
|
+
unknown
|
|
5839
|
+
> = z.object({
|
|
5840
|
+
model: z.string(),
|
|
5841
|
+
weight: z.number().default(0.5),
|
|
5842
|
+
});
|
|
5843
|
+
|
|
5844
|
+
export function createAgentRequestLoadBalancerModelsFromJSON(
|
|
5845
|
+
jsonString: string,
|
|
5846
|
+
): SafeParseResult<CreateAgentRequestLoadBalancerModels, SDKValidationError> {
|
|
5847
|
+
return safeParse(
|
|
5848
|
+
jsonString,
|
|
5849
|
+
(x) =>
|
|
5850
|
+
CreateAgentRequestLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
|
|
5851
|
+
`Failed to parse 'CreateAgentRequestLoadBalancerModels' from JSON`,
|
|
5852
|
+
);
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5769
5855
|
/** @internal */
|
|
5770
5856
|
export const CreateAgentRequestLoadBalancerAgents1$inboundSchema: z.ZodType<
|
|
5771
5857
|
CreateAgentRequestLoadBalancerAgents1,
|
|
@@ -5773,8 +5859,9 @@ export const CreateAgentRequestLoadBalancerAgents1$inboundSchema: z.ZodType<
|
|
|
5773
5859
|
unknown
|
|
5774
5860
|
> = z.object({
|
|
5775
5861
|
type: CreateAgentRequestLoadBalancerAgentsType$inboundSchema,
|
|
5776
|
-
|
|
5777
|
-
|
|
5862
|
+
models: z.array(
|
|
5863
|
+
z.lazy(() => CreateAgentRequestLoadBalancerModels$inboundSchema),
|
|
5864
|
+
),
|
|
5778
5865
|
});
|
|
5779
5866
|
|
|
5780
5867
|
export function createAgentRequestLoadBalancerAgents1FromJSON(
|
|
@@ -5878,8 +5965,8 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
5878
5965
|
.optional(),
|
|
5879
5966
|
retry: z.lazy(() => CreateAgentRequestAgentsRetry$inboundSchema).optional(),
|
|
5880
5967
|
cache: z.lazy(() => CreateAgentRequestCache$inboundSchema).optional(),
|
|
5881
|
-
load_balancer: z.
|
|
5882
|
-
|
|
5968
|
+
load_balancer: z.lazy(() =>
|
|
5969
|
+
CreateAgentRequestLoadBalancerAgents1$inboundSchema
|
|
5883
5970
|
).optional(),
|
|
5884
5971
|
timeout: z.lazy(() => CreateAgentRequestTimeout$inboundSchema).optional(),
|
|
5885
5972
|
}).transform((v) => {
|
|
@@ -6457,6 +6544,30 @@ export const CreateAgentRequestLoadBalancerAgentsResponseType$inboundSchema:
|
|
|
6457
6544
|
z.ZodNativeEnum<typeof CreateAgentRequestLoadBalancerAgentsResponseType> = z
|
|
6458
6545
|
.nativeEnum(CreateAgentRequestLoadBalancerAgentsResponseType);
|
|
6459
6546
|
|
|
6547
|
+
/** @internal */
|
|
6548
|
+
export const CreateAgentRequestLoadBalancerAgentsModels$inboundSchema:
|
|
6549
|
+
z.ZodType<CreateAgentRequestLoadBalancerAgentsModels, z.ZodTypeDef, unknown> =
|
|
6550
|
+
z.object({
|
|
6551
|
+
model: z.string(),
|
|
6552
|
+
weight: z.number().default(0.5),
|
|
6553
|
+
});
|
|
6554
|
+
|
|
6555
|
+
export function createAgentRequestLoadBalancerAgentsModelsFromJSON(
|
|
6556
|
+
jsonString: string,
|
|
6557
|
+
): SafeParseResult<
|
|
6558
|
+
CreateAgentRequestLoadBalancerAgentsModels,
|
|
6559
|
+
SDKValidationError
|
|
6560
|
+
> {
|
|
6561
|
+
return safeParse(
|
|
6562
|
+
jsonString,
|
|
6563
|
+
(x) =>
|
|
6564
|
+
CreateAgentRequestLoadBalancerAgentsModels$inboundSchema.parse(
|
|
6565
|
+
JSON.parse(x),
|
|
6566
|
+
),
|
|
6567
|
+
`Failed to parse 'CreateAgentRequestLoadBalancerAgentsModels' from JSON`,
|
|
6568
|
+
);
|
|
6569
|
+
}
|
|
6570
|
+
|
|
6460
6571
|
/** @internal */
|
|
6461
6572
|
export const CreateAgentRequestLoadBalancerAgentsResponse1$inboundSchema:
|
|
6462
6573
|
z.ZodType<
|
|
@@ -6465,8 +6576,9 @@ export const CreateAgentRequestLoadBalancerAgentsResponse1$inboundSchema:
|
|
|
6465
6576
|
unknown
|
|
6466
6577
|
> = z.object({
|
|
6467
6578
|
type: CreateAgentRequestLoadBalancerAgentsResponseType$inboundSchema,
|
|
6468
|
-
|
|
6469
|
-
|
|
6579
|
+
models: z.array(
|
|
6580
|
+
z.lazy(() => CreateAgentRequestLoadBalancerAgentsModels$inboundSchema),
|
|
6581
|
+
),
|
|
6470
6582
|
});
|
|
6471
6583
|
|
|
6472
6584
|
export function createAgentRequestLoadBalancerAgentsResponse1FromJSON(
|
|
@@ -6610,8 +6722,8 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6610
6722
|
cache: z.lazy(() =>
|
|
6611
6723
|
CreateAgentRequestFallbackModelConfigurationCache$inboundSchema
|
|
6612
6724
|
).optional(),
|
|
6613
|
-
load_balancer: z.
|
|
6614
|
-
|
|
6725
|
+
load_balancer: z.lazy(() =>
|
|
6726
|
+
CreateAgentRequestLoadBalancerAgentsResponse1$inboundSchema
|
|
6615
6727
|
).optional(),
|
|
6616
6728
|
timeout: z.lazy(() =>
|
|
6617
6729
|
CreateAgentRequestFallbackModelConfigurationTimeout$inboundSchema
|
|
@@ -719,8 +719,7 @@ export type CreateChatCompletionLoadBalancerType = ClosedEnum<
|
|
|
719
719
|
typeof CreateChatCompletionLoadBalancerType
|
|
720
720
|
>;
|
|
721
721
|
|
|
722
|
-
export type
|
|
723
|
-
type: CreateChatCompletionLoadBalancerType;
|
|
722
|
+
export type CreateChatCompletionLoadBalancerModels = {
|
|
724
723
|
/**
|
|
725
724
|
* Model identifier for load balancing
|
|
726
725
|
*/
|
|
@@ -731,6 +730,14 @@ export type CreateChatCompletionLoadBalancer1 = {
|
|
|
731
730
|
weight?: number | undefined;
|
|
732
731
|
};
|
|
733
732
|
|
|
733
|
+
export type CreateChatCompletionLoadBalancer1 = {
|
|
734
|
+
type: CreateChatCompletionLoadBalancerType;
|
|
735
|
+
models: Array<CreateChatCompletionLoadBalancerModels>;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Load balancer configuration for the request.
|
|
740
|
+
*/
|
|
734
741
|
export type CreateChatCompletionLoadBalancer =
|
|
735
742
|
CreateChatCompletionLoadBalancer1;
|
|
736
743
|
|
|
@@ -1328,8 +1335,7 @@ export const CreateChatCompletionLoadBalancerRouterChatCompletionsType = {
|
|
|
1328
1335
|
export type CreateChatCompletionLoadBalancerRouterChatCompletionsType =
|
|
1329
1336
|
ClosedEnum<typeof CreateChatCompletionLoadBalancerRouterChatCompletionsType>;
|
|
1330
1337
|
|
|
1331
|
-
export type
|
|
1332
|
-
type: CreateChatCompletionLoadBalancerRouterChatCompletionsType;
|
|
1338
|
+
export type CreateChatCompletionLoadBalancerRouterChatCompletionsModels = {
|
|
1333
1339
|
/**
|
|
1334
1340
|
* Model identifier for load balancing
|
|
1335
1341
|
*/
|
|
@@ -1340,6 +1346,14 @@ export type CreateChatCompletionLoadBalancerRouterChatCompletions1 = {
|
|
|
1340
1346
|
weight?: number | undefined;
|
|
1341
1347
|
};
|
|
1342
1348
|
|
|
1349
|
+
export type CreateChatCompletionLoadBalancerRouterChatCompletions1 = {
|
|
1350
|
+
type: CreateChatCompletionLoadBalancerRouterChatCompletionsType;
|
|
1351
|
+
models: Array<CreateChatCompletionLoadBalancerRouterChatCompletionsModels>;
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Array of models with weights for load balancing requests
|
|
1356
|
+
*/
|
|
1343
1357
|
export type CreateChatCompletionRouterChatCompletionsLoadBalancer =
|
|
1344
1358
|
CreateChatCompletionLoadBalancerRouterChatCompletions1;
|
|
1345
1359
|
|
|
@@ -1399,7 +1413,7 @@ export type Orq = {
|
|
|
1399
1413
|
* Array of models with weights for load balancing requests
|
|
1400
1414
|
*/
|
|
1401
1415
|
loadBalancer?:
|
|
1402
|
-
|
|
|
1416
|
+
| CreateChatCompletionLoadBalancerRouterChatCompletions1
|
|
1403
1417
|
| undefined;
|
|
1404
1418
|
/**
|
|
1405
1419
|
* 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.
|
|
@@ -1551,9 +1565,9 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1551
1565
|
*/
|
|
1552
1566
|
cache?: CreateChatCompletionCache | undefined;
|
|
1553
1567
|
/**
|
|
1554
|
-
*
|
|
1568
|
+
* Load balancer configuration for the request.
|
|
1555
1569
|
*/
|
|
1556
|
-
loadBalancer?:
|
|
1570
|
+
loadBalancer?: CreateChatCompletionLoadBalancer1 | undefined;
|
|
1557
1571
|
/**
|
|
1558
1572
|
* 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.
|
|
1559
1573
|
*/
|
|
@@ -3435,12 +3449,38 @@ export const CreateChatCompletionLoadBalancerType$outboundSchema:
|
|
|
3435
3449
|
);
|
|
3436
3450
|
|
|
3437
3451
|
/** @internal */
|
|
3438
|
-
export type
|
|
3439
|
-
type: string;
|
|
3452
|
+
export type CreateChatCompletionLoadBalancerModels$Outbound = {
|
|
3440
3453
|
model: string;
|
|
3441
3454
|
weight: number;
|
|
3442
3455
|
};
|
|
3443
3456
|
|
|
3457
|
+
/** @internal */
|
|
3458
|
+
export const CreateChatCompletionLoadBalancerModels$outboundSchema: z.ZodType<
|
|
3459
|
+
CreateChatCompletionLoadBalancerModels$Outbound,
|
|
3460
|
+
z.ZodTypeDef,
|
|
3461
|
+
CreateChatCompletionLoadBalancerModels
|
|
3462
|
+
> = z.object({
|
|
3463
|
+
model: z.string(),
|
|
3464
|
+
weight: z.number().default(0.5),
|
|
3465
|
+
});
|
|
3466
|
+
|
|
3467
|
+
export function createChatCompletionLoadBalancerModelsToJSON(
|
|
3468
|
+
createChatCompletionLoadBalancerModels:
|
|
3469
|
+
CreateChatCompletionLoadBalancerModels,
|
|
3470
|
+
): string {
|
|
3471
|
+
return JSON.stringify(
|
|
3472
|
+
CreateChatCompletionLoadBalancerModels$outboundSchema.parse(
|
|
3473
|
+
createChatCompletionLoadBalancerModels,
|
|
3474
|
+
),
|
|
3475
|
+
);
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
/** @internal */
|
|
3479
|
+
export type CreateChatCompletionLoadBalancer1$Outbound = {
|
|
3480
|
+
type: string;
|
|
3481
|
+
models: Array<CreateChatCompletionLoadBalancerModels$Outbound>;
|
|
3482
|
+
};
|
|
3483
|
+
|
|
3444
3484
|
/** @internal */
|
|
3445
3485
|
export const CreateChatCompletionLoadBalancer1$outboundSchema: z.ZodType<
|
|
3446
3486
|
CreateChatCompletionLoadBalancer1$Outbound,
|
|
@@ -3448,8 +3488,9 @@ export const CreateChatCompletionLoadBalancer1$outboundSchema: z.ZodType<
|
|
|
3448
3488
|
CreateChatCompletionLoadBalancer1
|
|
3449
3489
|
> = z.object({
|
|
3450
3490
|
type: CreateChatCompletionLoadBalancerType$outboundSchema,
|
|
3451
|
-
|
|
3452
|
-
|
|
3491
|
+
models: z.array(
|
|
3492
|
+
z.lazy(() => CreateChatCompletionLoadBalancerModels$outboundSchema),
|
|
3493
|
+
),
|
|
3453
3494
|
});
|
|
3454
3495
|
|
|
3455
3496
|
export function createChatCompletionLoadBalancer1ToJSON(
|
|
@@ -5094,11 +5135,40 @@ export const CreateChatCompletionLoadBalancerRouterChatCompletionsType$outboundS
|
|
|
5094
5135
|
typeof CreateChatCompletionLoadBalancerRouterChatCompletionsType
|
|
5095
5136
|
> = z.nativeEnum(CreateChatCompletionLoadBalancerRouterChatCompletionsType);
|
|
5096
5137
|
|
|
5138
|
+
/** @internal */
|
|
5139
|
+
export type CreateChatCompletionLoadBalancerRouterChatCompletionsModels$Outbound =
|
|
5140
|
+
{
|
|
5141
|
+
model: string;
|
|
5142
|
+
weight: number;
|
|
5143
|
+
};
|
|
5144
|
+
|
|
5145
|
+
/** @internal */
|
|
5146
|
+
export const CreateChatCompletionLoadBalancerRouterChatCompletionsModels$outboundSchema:
|
|
5147
|
+
z.ZodType<
|
|
5148
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels$Outbound,
|
|
5149
|
+
z.ZodTypeDef,
|
|
5150
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels
|
|
5151
|
+
> = z.object({
|
|
5152
|
+
model: z.string(),
|
|
5153
|
+
weight: z.number().default(0.5),
|
|
5154
|
+
});
|
|
5155
|
+
|
|
5156
|
+
export function createChatCompletionLoadBalancerRouterChatCompletionsModelsToJSON(
|
|
5157
|
+
createChatCompletionLoadBalancerRouterChatCompletionsModels:
|
|
5158
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels,
|
|
5159
|
+
): string {
|
|
5160
|
+
return JSON.stringify(
|
|
5161
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels$outboundSchema
|
|
5162
|
+
.parse(createChatCompletionLoadBalancerRouterChatCompletionsModels),
|
|
5163
|
+
);
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5097
5166
|
/** @internal */
|
|
5098
5167
|
export type CreateChatCompletionLoadBalancerRouterChatCompletions1$Outbound = {
|
|
5099
5168
|
type: string;
|
|
5100
|
-
|
|
5101
|
-
|
|
5169
|
+
models: Array<
|
|
5170
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels$Outbound
|
|
5171
|
+
>;
|
|
5102
5172
|
};
|
|
5103
5173
|
|
|
5104
5174
|
/** @internal */
|
|
@@ -5110,8 +5180,11 @@ export const CreateChatCompletionLoadBalancerRouterChatCompletions1$outboundSche
|
|
|
5110
5180
|
> = z.object({
|
|
5111
5181
|
type:
|
|
5112
5182
|
CreateChatCompletionLoadBalancerRouterChatCompletionsType$outboundSchema,
|
|
5113
|
-
|
|
5114
|
-
|
|
5183
|
+
models: z.array(
|
|
5184
|
+
z.lazy(() =>
|
|
5185
|
+
CreateChatCompletionLoadBalancerRouterChatCompletionsModels$outboundSchema
|
|
5186
|
+
),
|
|
5187
|
+
),
|
|
5115
5188
|
});
|
|
5116
5189
|
|
|
5117
5190
|
export function createChatCompletionLoadBalancerRouterChatCompletions1ToJSON(
|
|
@@ -5197,7 +5270,7 @@ export type Orq$Outbound = {
|
|
|
5197
5270
|
| Array<CreateChatCompletionKnowledgeBases$Outbound>
|
|
5198
5271
|
| undefined;
|
|
5199
5272
|
load_balancer?:
|
|
5200
|
-
|
|
|
5273
|
+
| CreateChatCompletionLoadBalancerRouterChatCompletions1$Outbound
|
|
5201
5274
|
| undefined;
|
|
5202
5275
|
timeout?:
|
|
5203
5276
|
| CreateChatCompletionRouterChatCompletionsTimeout$Outbound
|
|
@@ -5231,10 +5304,8 @@ export const Orq$outboundSchema: z.ZodType<Orq$Outbound, z.ZodTypeDef, Orq> = z
|
|
|
5231
5304
|
knowledgeBases: z.array(
|
|
5232
5305
|
z.lazy(() => CreateChatCompletionKnowledgeBases$outboundSchema),
|
|
5233
5306
|
).optional(),
|
|
5234
|
-
loadBalancer: z.
|
|
5235
|
-
|
|
5236
|
-
CreateChatCompletionLoadBalancerRouterChatCompletions1$outboundSchema
|
|
5237
|
-
),
|
|
5307
|
+
loadBalancer: z.lazy(() =>
|
|
5308
|
+
CreateChatCompletionLoadBalancerRouterChatCompletions1$outboundSchema
|
|
5238
5309
|
).optional(),
|
|
5239
5310
|
timeout: z.lazy(() =>
|
|
5240
5311
|
CreateChatCompletionRouterChatCompletionsTimeout$outboundSchema
|
|
@@ -5297,7 +5368,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5297
5368
|
fallbacks?: Array<CreateChatCompletionFallbacks$Outbound> | undefined;
|
|
5298
5369
|
retry?: CreateChatCompletionRetry$Outbound | undefined;
|
|
5299
5370
|
cache?: CreateChatCompletionCache$Outbound | undefined;
|
|
5300
|
-
load_balancer?:
|
|
5371
|
+
load_balancer?: CreateChatCompletionLoadBalancer1$Outbound | undefined;
|
|
5301
5372
|
timeout?: CreateChatCompletionTimeout$Outbound | undefined;
|
|
5302
5373
|
orq?: Orq$Outbound | undefined;
|
|
5303
5374
|
stream: boolean;
|
|
@@ -5367,9 +5438,8 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5367
5438
|
.optional(),
|
|
5368
5439
|
retry: z.lazy(() => CreateChatCompletionRetry$outboundSchema).optional(),
|
|
5369
5440
|
cache: z.lazy(() => CreateChatCompletionCache$outboundSchema).optional(),
|
|
5370
|
-
loadBalancer: z.
|
|
5371
|
-
|
|
5372
|
-
).optional(),
|
|
5441
|
+
loadBalancer: z.lazy(() => CreateChatCompletionLoadBalancer1$outboundSchema)
|
|
5442
|
+
.optional(),
|
|
5373
5443
|
timeout: z.lazy(() => CreateChatCompletionTimeout$outboundSchema).optional(),
|
|
5374
5444
|
orq: z.lazy(() => Orq$outboundSchema).optional(),
|
|
5375
5445
|
stream: z.boolean().default(false),
|