@orq-ai/node 4.9.24 → 4.9.29
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +3 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +3 -1
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +3 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- 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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- 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.js +1 -1
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +3 -1
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -2
- package/models/operations/streamrunagent.js.map +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 +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +5 -13
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -9
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +3 -0
- package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
- package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
- package/packages/orq-rc/src/funcs/{agentsPostV2AgentsA2a.ts → modelsImportLitellm.ts} +16 -30
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
- package/packages/orq-rc/src/funcs/{deploymentsMetricsCreate.ts → modelsUpdate.ts} +14 -17
- package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
- package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
- package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
- package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
- package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
- package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
- package/packages/orq-rc/src/lib/config.ts +3 -13
- package/packages/orq-rc/src/lib/env.ts +0 -32
- package/packages/orq-rc/src/lib/sdks.ts +2 -2
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/packages/orq-rc/src/models/components/apikey.ts +3 -12
- package/packages/orq-rc/src/models/components/autorouterconfig.ts +78 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +44 -0
- package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
- package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/detectrequest.ts +56 -0
- package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/domain.ts +14 -21
- package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
- package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
- package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
- package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
- package/packages/orq-rc/src/models/components/embeddingorqparams.ts +101 -0
- package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
- package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
- package/packages/orq-rc/src/models/components/evaluatorref.ts +4 -0
- package/packages/orq-rc/src/models/components/guardrailref.ts +4 -0
- package/packages/orq-rc/src/models/components/index.ts +36 -3
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +1 -2
- package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
- package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
- package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
- package/packages/orq-rc/src/models/components/modeldocument.ts +112 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +720 -0
- package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
- package/packages/orq-rc/src/models/components/price.ts +56 -0
- package/packages/orq-rc/src/models/components/pricing.ts +93 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +90 -0
- package/packages/orq-rc/src/models/components/project.ts +5 -0
- package/packages/orq-rc/src/models/components/publicembeddingdata.ts +60 -0
- package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
- package/packages/orq-rc/src/models/components/publicmodelentry.ts +7 -6
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
- package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
- package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
- package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
- package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
- package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
- package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
- package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +14 -101
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +2 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +2 -1
- package/packages/orq-rc/src/models/operations/createcompletion.ts +2 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -1
- package/packages/orq-rc/src/models/operations/createembedding.ts +82 -810
- package/packages/orq-rc/src/models/operations/createeval.ts +630 -1333
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +33 -15
- package/packages/orq-rc/src/models/operations/createtool.ts +24 -28
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1606 -1156
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3761 -320
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +287 -250
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -64
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +15 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -87
- package/packages/orq-rc/src/models/operations/listchunks.ts +35 -6
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
- package/packages/orq-rc/src/models/operations/modelcreate.ts +184 -0
- package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +151 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +218 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +202 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +144 -0
- package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
- package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
- package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +198 -0
- package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +189 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +248 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +236 -0
- package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
- package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +57 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -91
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +20 -29
- package/packages/orq-rc/src/models/operations/streamagent.ts +2 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -2
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -171
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +41 -100
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +17 -35
- package/packages/orq-rc/src/sdk/annotations.ts +6 -0
- package/packages/orq-rc/src/sdk/deployments.ts +1 -8
- package/packages/orq-rc/src/sdk/knowledge.ts +3 -0
- package/packages/orq-rc/src/sdk/models.ts +305 -0
- package/packages/orq-rc/src/sdk/pii.ts +63 -0
- package/packages/orq-rc/src/sdk/router.ts +5 -5
- package/packages/orq-rc/src/sdk/sdk.ts +11 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -1
- package/src/models/operations/createcontact.ts +1 -1
- 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/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentstream.ts +2 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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 +1 -1
- package/src/models/operations/streamagent.ts +2 -1
- package/src/models/operations/streamrunagent.ts +3 -2
- 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 +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/components/domaingroup.ts +0 -18
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
- package/packages/orq-rc/src/models/components/scopemode.ts +0 -17
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -249
- package/packages/orq-rc/src/sdk/metrics.ts +0 -29
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
EmbeddingCacheConfig,
|
|
9
|
+
EmbeddingCacheConfig$Outbound,
|
|
10
|
+
EmbeddingCacheConfig$outboundSchema,
|
|
11
|
+
} from "./embeddingcacheconfig.js";
|
|
12
|
+
import {
|
|
13
|
+
EmbeddingContactParams,
|
|
14
|
+
EmbeddingContactParams$Outbound,
|
|
15
|
+
EmbeddingContactParams$outboundSchema,
|
|
16
|
+
} from "./embeddingcontactparams.js";
|
|
17
|
+
import {
|
|
18
|
+
EmbeddingLoadBalancerConfig,
|
|
19
|
+
EmbeddingLoadBalancerConfig$Outbound,
|
|
20
|
+
EmbeddingLoadBalancerConfig$outboundSchema,
|
|
21
|
+
} from "./embeddingloadbalancerconfig.js";
|
|
22
|
+
import {
|
|
23
|
+
EmbeddingRetryConfig,
|
|
24
|
+
EmbeddingRetryConfig$Outbound,
|
|
25
|
+
EmbeddingRetryConfig$outboundSchema,
|
|
26
|
+
} from "./embeddingretryconfig.js";
|
|
27
|
+
import {
|
|
28
|
+
EmbeddingTimeoutConfig,
|
|
29
|
+
EmbeddingTimeoutConfig$Outbound,
|
|
30
|
+
EmbeddingTimeoutConfig$outboundSchema,
|
|
31
|
+
} from "./embeddingtimeoutconfig.js";
|
|
32
|
+
import {
|
|
33
|
+
FallbackConfig,
|
|
34
|
+
FallbackConfig$Outbound,
|
|
35
|
+
FallbackConfig$outboundSchema,
|
|
36
|
+
} from "./fallbackconfig.js";
|
|
37
|
+
import {
|
|
38
|
+
PublicIdentity,
|
|
39
|
+
PublicIdentity$Outbound,
|
|
40
|
+
PublicIdentity$outboundSchema,
|
|
41
|
+
} from "./publicidentity.js";
|
|
42
|
+
|
|
43
|
+
export type EmbeddingOrqParams = {
|
|
44
|
+
cache?: EmbeddingCacheConfig | undefined;
|
|
45
|
+
contact?: EmbeddingContactParams | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Deprecated: use top-level fallbacks instead.
|
|
48
|
+
*/
|
|
49
|
+
fallbacks?: Array<FallbackConfig> | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
52
|
+
*/
|
|
53
|
+
identity?: PublicIdentity | undefined;
|
|
54
|
+
loadBalancer?: EmbeddingLoadBalancerConfig | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Deprecated: use top-level name instead.
|
|
57
|
+
*/
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
retry?: EmbeddingRetryConfig | undefined;
|
|
60
|
+
timeout?: EmbeddingTimeoutConfig | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type EmbeddingOrqParams$Outbound = {
|
|
65
|
+
cache?: EmbeddingCacheConfig$Outbound | undefined;
|
|
66
|
+
contact?: EmbeddingContactParams$Outbound | undefined;
|
|
67
|
+
fallbacks?: Array<FallbackConfig$Outbound> | null | undefined;
|
|
68
|
+
identity?: PublicIdentity$Outbound | undefined;
|
|
69
|
+
load_balancer?: EmbeddingLoadBalancerConfig$Outbound | undefined;
|
|
70
|
+
name?: string | undefined;
|
|
71
|
+
retry?: EmbeddingRetryConfig$Outbound | undefined;
|
|
72
|
+
timeout?: EmbeddingTimeoutConfig$Outbound | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const EmbeddingOrqParams$outboundSchema: z.ZodType<
|
|
77
|
+
EmbeddingOrqParams$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
EmbeddingOrqParams
|
|
80
|
+
> = z.object({
|
|
81
|
+
cache: EmbeddingCacheConfig$outboundSchema.optional(),
|
|
82
|
+
contact: EmbeddingContactParams$outboundSchema.optional(),
|
|
83
|
+
fallbacks: z.nullable(z.array(FallbackConfig$outboundSchema)).optional(),
|
|
84
|
+
identity: PublicIdentity$outboundSchema.optional(),
|
|
85
|
+
loadBalancer: EmbeddingLoadBalancerConfig$outboundSchema.optional(),
|
|
86
|
+
name: z.string().optional(),
|
|
87
|
+
retry: EmbeddingRetryConfig$outboundSchema.optional(),
|
|
88
|
+
timeout: EmbeddingTimeoutConfig$outboundSchema.optional(),
|
|
89
|
+
}).transform((v) => {
|
|
90
|
+
return remap$(v, {
|
|
91
|
+
loadBalancer: "load_balancer",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function embeddingOrqParamsToJSON(
|
|
96
|
+
embeddingOrqParams: EmbeddingOrqParams,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
EmbeddingOrqParams$outboundSchema.parse(embeddingOrqParams),
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type EmbeddingRetryConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Number of retry attempts (1-5).
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
/**
|
|
14
|
+
* HTTP status codes that trigger retry logic.
|
|
15
|
+
*/
|
|
16
|
+
onCodes: Array<number> | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type EmbeddingRetryConfig$Outbound = {
|
|
21
|
+
count: number;
|
|
22
|
+
on_codes: Array<number> | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const EmbeddingRetryConfig$outboundSchema: z.ZodType<
|
|
27
|
+
EmbeddingRetryConfig$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
EmbeddingRetryConfig
|
|
30
|
+
> = z.object({
|
|
31
|
+
count: z.number().int(),
|
|
32
|
+
onCodes: z.nullable(z.array(z.number().int())),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
onCodes: "on_codes",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function embeddingRetryConfigToJSON(
|
|
40
|
+
embeddingRetryConfig: EmbeddingRetryConfig,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
EmbeddingRetryConfig$outboundSchema.parse(embeddingRetryConfig),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type EmbeddingTimeoutConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Timeout value in milliseconds.
|
|
11
|
+
*/
|
|
12
|
+
callTimeout: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type EmbeddingTimeoutConfig$Outbound = {
|
|
17
|
+
call_timeout: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const EmbeddingTimeoutConfig$outboundSchema: z.ZodType<
|
|
22
|
+
EmbeddingTimeoutConfig$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
EmbeddingTimeoutConfig
|
|
25
|
+
> = z.object({
|
|
26
|
+
callTimeout: z.number().int(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
callTimeout: "call_timeout",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function embeddingTimeoutConfigToJSON(
|
|
34
|
+
embeddingTimeoutConfig: EmbeddingTimeoutConfig,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
EmbeddingTimeoutConfig$outboundSchema.parse(embeddingTimeoutConfig),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -20,6 +20,7 @@ export type EvaluatorRef = {
|
|
|
20
20
|
executeOn: EvaluatorRefExecuteOn;
|
|
21
21
|
id: string;
|
|
22
22
|
isGuardrail?: boolean | undefined;
|
|
23
|
+
options?: { [k: string]: any } | undefined;
|
|
23
24
|
sampleRate?: number | undefined;
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -41,6 +42,7 @@ export const EvaluatorRef$inboundSchema: z.ZodType<
|
|
|
41
42
|
execute_on: EvaluatorRefExecuteOn$inboundSchema,
|
|
42
43
|
id: z.string(),
|
|
43
44
|
is_guardrail: z.boolean().optional(),
|
|
45
|
+
options: z.record(z.any()).optional(),
|
|
44
46
|
sample_rate: z.number().optional(),
|
|
45
47
|
}).transform((v) => {
|
|
46
48
|
return remap$(v, {
|
|
@@ -54,6 +56,7 @@ export type EvaluatorRef$Outbound = {
|
|
|
54
56
|
execute_on: string;
|
|
55
57
|
id: string;
|
|
56
58
|
is_guardrail?: boolean | undefined;
|
|
59
|
+
options?: { [k: string]: any } | undefined;
|
|
57
60
|
sample_rate?: number | undefined;
|
|
58
61
|
};
|
|
59
62
|
|
|
@@ -66,6 +69,7 @@ export const EvaluatorRef$outboundSchema: z.ZodType<
|
|
|
66
69
|
executeOn: EvaluatorRefExecuteOn$outboundSchema,
|
|
67
70
|
id: z.string(),
|
|
68
71
|
isGuardrail: z.boolean().optional(),
|
|
72
|
+
options: z.record(z.any()).optional(),
|
|
69
73
|
sampleRate: z.number().optional(),
|
|
70
74
|
}).transform((v) => {
|
|
71
75
|
return remap$(v, {
|
|
@@ -20,6 +20,7 @@ export type GuardrailRef = {
|
|
|
20
20
|
executeOn: ExecuteOn;
|
|
21
21
|
id: string;
|
|
22
22
|
isGuardrail?: boolean | undefined;
|
|
23
|
+
options?: { [k: string]: any } | undefined;
|
|
23
24
|
sampleRate?: number | undefined;
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -39,6 +40,7 @@ export const GuardrailRef$inboundSchema: z.ZodType<
|
|
|
39
40
|
execute_on: ExecuteOn$inboundSchema,
|
|
40
41
|
id: z.string(),
|
|
41
42
|
is_guardrail: z.boolean().optional(),
|
|
43
|
+
options: z.record(z.any()).optional(),
|
|
42
44
|
sample_rate: z.number().optional(),
|
|
43
45
|
}).transform((v) => {
|
|
44
46
|
return remap$(v, {
|
|
@@ -52,6 +54,7 @@ export type GuardrailRef$Outbound = {
|
|
|
52
54
|
execute_on: string;
|
|
53
55
|
id: string;
|
|
54
56
|
is_guardrail?: boolean | undefined;
|
|
57
|
+
options?: { [k: string]: any } | undefined;
|
|
55
58
|
sample_rate?: number | undefined;
|
|
56
59
|
};
|
|
57
60
|
|
|
@@ -64,6 +67,7 @@ export const GuardrailRef$outboundSchema: z.ZodType<
|
|
|
64
67
|
executeOn: ExecuteOn$outboundSchema,
|
|
65
68
|
id: z.string(),
|
|
66
69
|
isGuardrail: z.boolean().optional(),
|
|
70
|
+
options: z.record(z.any()).optional(),
|
|
67
71
|
sampleRate: z.number().optional(),
|
|
68
72
|
}).transform((v) => {
|
|
69
73
|
return remap$(v, {
|
|
@@ -17,6 +17,9 @@ export * from "./apikey.js";
|
|
|
17
17
|
export * from "./apikeyowner.js";
|
|
18
18
|
export * from "./apikeystatus.js";
|
|
19
19
|
export * from "./audiocontentpartschema.js";
|
|
20
|
+
export * from "./autorouterconfig.js";
|
|
21
|
+
export * from "./azurefoundrydeployment.js";
|
|
22
|
+
export * from "./azurefoundrydeploymentmasterdata.js";
|
|
20
23
|
export * from "./budgetlimit.js";
|
|
21
24
|
export * from "./conversationparam.js";
|
|
22
25
|
export * from "./createagentresponse.js";
|
|
@@ -26,6 +29,7 @@ export * from "./createfilerequest.js";
|
|
|
26
29
|
export * from "./createfileresponse.js";
|
|
27
30
|
export * from "./createidentityrequest.js";
|
|
28
31
|
export * from "./createidentityresponse.js";
|
|
32
|
+
export * from "./createmodelparameter.js";
|
|
29
33
|
export * from "./createprojectrequest.js";
|
|
30
34
|
export * from "./createprojectresponse.js";
|
|
31
35
|
export * from "./createskillrequest.js";
|
|
@@ -37,8 +41,16 @@ export * from "./deletefileresponse.js";
|
|
|
37
41
|
export * from "./deleteidentityresponse.js";
|
|
38
42
|
export * from "./deleteprojectresponse.js";
|
|
39
43
|
export * from "./deleteskillresponse.js";
|
|
44
|
+
export * from "./detectrequest.js";
|
|
45
|
+
export * from "./detectresponse.js";
|
|
40
46
|
export * from "./domain.js";
|
|
41
|
-
export * from "./
|
|
47
|
+
export * from "./embeddingcacheconfig.js";
|
|
48
|
+
export * from "./embeddingcontactparams.js";
|
|
49
|
+
export * from "./embeddingloadbalancerconfig.js";
|
|
50
|
+
export * from "./embeddingloadbalancermodelconfig.js";
|
|
51
|
+
export * from "./embeddingorqparams.js";
|
|
52
|
+
export * from "./embeddingretryconfig.js";
|
|
53
|
+
export * from "./embeddingtimeoutconfig.js";
|
|
42
54
|
export * from "./errorpart.js";
|
|
43
55
|
export * from "./errorstreamingevent.js";
|
|
44
56
|
export * from "./evaluatorref.js";
|
|
@@ -67,7 +79,6 @@ export * from "./identitymetrics.js";
|
|
|
67
79
|
export * from "./imagecontentpartschema.js";
|
|
68
80
|
export * from "./incompletedetails.js";
|
|
69
81
|
export * from "./inputtokensdetails.js";
|
|
70
|
-
export * from "./invokedeploymentrequest.js";
|
|
71
82
|
export * from "./legacytokenfamily.js";
|
|
72
83
|
export * from "./limits.js";
|
|
73
84
|
export * from "./listapikeysresponse.js";
|
|
@@ -76,7 +87,14 @@ export * from "./listfilesresponse.js";
|
|
|
76
87
|
export * from "./listidentitiesresponse.js";
|
|
77
88
|
export * from "./listprojectsresponse.js";
|
|
78
89
|
export * from "./listskillsresponse.js";
|
|
90
|
+
export * from "./litellmmodel.js";
|
|
91
|
+
export * from "./litellmmodelinfo.js";
|
|
92
|
+
export * from "./litellmparams.js";
|
|
79
93
|
export * from "./memoryparam.js";
|
|
94
|
+
export * from "./modelconfigurationresponse.js";
|
|
95
|
+
export * from "./modeldocument.js";
|
|
96
|
+
export * from "./modelmetadata.js";
|
|
97
|
+
export * from "./modelparameterdocument.js";
|
|
80
98
|
export * from "./modelref.js";
|
|
81
99
|
export * from "./modelsconfig.js";
|
|
82
100
|
export * from "./outputtokensdetails.js";
|
|
@@ -87,9 +105,14 @@ export * from "./partdoneevent.js";
|
|
|
87
105
|
export * from "./permissionmode.js";
|
|
88
106
|
export * from "./policy.js";
|
|
89
107
|
export * from "./policyretryconfig.js";
|
|
108
|
+
export * from "./price.js";
|
|
109
|
+
export * from "./pricing.js";
|
|
110
|
+
export * from "./pricingvariant.js";
|
|
90
111
|
export * from "./project.js";
|
|
91
112
|
export * from "./projectscope.js";
|
|
92
113
|
export * from "./publiccontact.js";
|
|
114
|
+
export * from "./publicembeddingdata.js";
|
|
115
|
+
export * from "./publicembeddingusage.js";
|
|
93
116
|
export * from "./publicidentity.js";
|
|
94
117
|
export * from "./publicmodelentry.js";
|
|
95
118
|
export * from "./publicschedule.js";
|
|
@@ -103,6 +126,8 @@ export * from "./reasoningparam.js";
|
|
|
103
126
|
export * from "./reasoningpart.js";
|
|
104
127
|
export * from "./reasoningpartschema.js";
|
|
105
128
|
export * from "./redactedreasoningpartschema.js";
|
|
129
|
+
export * from "./redactrequest.js";
|
|
130
|
+
export * from "./redactresponse.js";
|
|
106
131
|
export * from "./refusalpartschema.js";
|
|
107
132
|
export * from "./requestlimit.js";
|
|
108
133
|
export * from "./responsedoneevent.js";
|
|
@@ -115,10 +140,11 @@ export * from "./responseretryconfig.js";
|
|
|
115
140
|
export * from "./responsestartedevent.js";
|
|
116
141
|
export * from "./responsestreamingevent.js";
|
|
117
142
|
export * from "./responsethread.js";
|
|
143
|
+
export * from "./restorerequest.js";
|
|
144
|
+
export * from "./restoreresponse.js";
|
|
118
145
|
export * from "./retrieveidentityresponse.js";
|
|
119
146
|
export * from "./reviewoutcome.js";
|
|
120
147
|
export * from "./routingrule.js";
|
|
121
|
-
export * from "./scopemode.js";
|
|
122
148
|
export * from "./security.js";
|
|
123
149
|
export * from "./serviceaccountowner.js";
|
|
124
150
|
export * from "./singleproject.js";
|
|
@@ -149,8 +175,15 @@ export * from "./updatefilerequest.js";
|
|
|
149
175
|
export * from "./updatefileresponse.js";
|
|
150
176
|
export * from "./updateidentityrequest.js";
|
|
151
177
|
export * from "./updateidentityresponse.js";
|
|
178
|
+
export * from "./updatemodelparameter.js";
|
|
152
179
|
export * from "./updateprojectrequest.js";
|
|
153
180
|
export * from "./updateprojectresponse.js";
|
|
154
181
|
export * from "./updateskillrequest.js";
|
|
155
182
|
export * from "./updateskillresponse.js";
|
|
156
183
|
export * from "./userowner.js";
|
|
184
|
+
export * from "./vertexcapabilities.js";
|
|
185
|
+
export * from "./vertexconfiguration.js";
|
|
186
|
+
export * from "./vertexmodelconfiguration.js";
|
|
187
|
+
export * from "./vertexparameters.js";
|
|
188
|
+
export * from "./vertexparamrange.js";
|
|
189
|
+
export * from "./vertexparamrangeint.js";
|
|
@@ -13,8 +13,7 @@ export type ListCapabilitiesResponse = {
|
|
|
13
13
|
* Full capability catalog. Order is stable: workspace-admin first,
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* then platform, then gateway.
|
|
17
|
-
* alphabetically by display_name.
|
|
16
|
+
* then platform, then gateway.
|
|
18
17
|
*/
|
|
19
18
|
domains?: Array<Domain> | undefined;
|
|
20
19
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
LiteLLMModelInfo,
|
|
9
|
+
LiteLLMModelInfo$Outbound,
|
|
10
|
+
LiteLLMModelInfo$outboundSchema,
|
|
11
|
+
} from "./litellmmodelinfo.js";
|
|
12
|
+
import {
|
|
13
|
+
LiteLLMParams,
|
|
14
|
+
LiteLLMParams$Outbound,
|
|
15
|
+
LiteLLMParams$outboundSchema,
|
|
16
|
+
} from "./litellmparams.js";
|
|
17
|
+
|
|
18
|
+
export type LiteLLMModel = {
|
|
19
|
+
litellmParams: LiteLLMParams;
|
|
20
|
+
modelInfo: LiteLLMModelInfo;
|
|
21
|
+
modelName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type LiteLLMModel$Outbound = {
|
|
26
|
+
litellm_params: LiteLLMParams$Outbound;
|
|
27
|
+
model_info: LiteLLMModelInfo$Outbound;
|
|
28
|
+
model_name: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const LiteLLMModel$outboundSchema: z.ZodType<
|
|
33
|
+
LiteLLMModel$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
LiteLLMModel
|
|
36
|
+
> = z.object({
|
|
37
|
+
litellmParams: LiteLLMParams$outboundSchema,
|
|
38
|
+
modelInfo: LiteLLMModelInfo$outboundSchema,
|
|
39
|
+
modelName: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
litellmParams: "litellm_params",
|
|
43
|
+
modelInfo: "model_info",
|
|
44
|
+
modelName: "model_name",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function liteLLMModelToJSON(liteLLMModel: LiteLLMModel): string {
|
|
49
|
+
return JSON.stringify(LiteLLMModel$outboundSchema.parse(liteLLMModel));
|
|
50
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type LiteLLMModelInfo = {
|
|
9
|
+
dbModel: boolean | null;
|
|
10
|
+
id: string | null;
|
|
11
|
+
inputCostPerToken?: number | undefined;
|
|
12
|
+
key: string | null;
|
|
13
|
+
litellmProvider: string | null;
|
|
14
|
+
maxInputTokens?: number | undefined;
|
|
15
|
+
maxOutputTokens?: number | undefined;
|
|
16
|
+
mode: string | null;
|
|
17
|
+
outputCostPerToken?: number | undefined;
|
|
18
|
+
supportedOpenaiParams?: Array<string> | null | undefined;
|
|
19
|
+
supportsFunctionCalling?: boolean | undefined;
|
|
20
|
+
supportsNativeStreaming?: boolean | undefined;
|
|
21
|
+
supportsReasoning?: boolean | undefined;
|
|
22
|
+
supportsResponseSchema?: boolean | undefined;
|
|
23
|
+
supportsSystemMessages?: boolean | undefined;
|
|
24
|
+
supportsToolChoice?: boolean | undefined;
|
|
25
|
+
supportsVision?: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LiteLLMModelInfo$Outbound = {
|
|
30
|
+
db_model: boolean | null;
|
|
31
|
+
id: string | null;
|
|
32
|
+
input_cost_per_token?: number | undefined;
|
|
33
|
+
key: string | null;
|
|
34
|
+
litellm_provider: string | null;
|
|
35
|
+
max_input_tokens?: number | undefined;
|
|
36
|
+
max_output_tokens?: number | undefined;
|
|
37
|
+
mode: string | null;
|
|
38
|
+
output_cost_per_token?: number | undefined;
|
|
39
|
+
supported_openai_params?: Array<string> | null | undefined;
|
|
40
|
+
supports_function_calling?: boolean | undefined;
|
|
41
|
+
supports_native_streaming?: boolean | undefined;
|
|
42
|
+
supports_reasoning?: boolean | undefined;
|
|
43
|
+
supports_response_schema?: boolean | undefined;
|
|
44
|
+
supports_system_messages?: boolean | undefined;
|
|
45
|
+
supports_tool_choice?: boolean | undefined;
|
|
46
|
+
supports_vision?: boolean | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const LiteLLMModelInfo$outboundSchema: z.ZodType<
|
|
51
|
+
LiteLLMModelInfo$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
LiteLLMModelInfo
|
|
54
|
+
> = z.object({
|
|
55
|
+
dbModel: z.nullable(z.boolean()),
|
|
56
|
+
id: z.nullable(z.string()),
|
|
57
|
+
inputCostPerToken: z.number().optional(),
|
|
58
|
+
key: z.nullable(z.string()),
|
|
59
|
+
litellmProvider: z.nullable(z.string()),
|
|
60
|
+
maxInputTokens: z.number().int().optional(),
|
|
61
|
+
maxOutputTokens: z.number().int().optional(),
|
|
62
|
+
mode: z.nullable(z.string()),
|
|
63
|
+
outputCostPerToken: z.number().optional(),
|
|
64
|
+
supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
|
|
65
|
+
supportsFunctionCalling: z.boolean().optional(),
|
|
66
|
+
supportsNativeStreaming: z.boolean().optional(),
|
|
67
|
+
supportsReasoning: z.boolean().optional(),
|
|
68
|
+
supportsResponseSchema: z.boolean().optional(),
|
|
69
|
+
supportsSystemMessages: z.boolean().optional(),
|
|
70
|
+
supportsToolChoice: z.boolean().optional(),
|
|
71
|
+
supportsVision: z.boolean().optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
dbModel: "db_model",
|
|
75
|
+
inputCostPerToken: "input_cost_per_token",
|
|
76
|
+
litellmProvider: "litellm_provider",
|
|
77
|
+
maxInputTokens: "max_input_tokens",
|
|
78
|
+
maxOutputTokens: "max_output_tokens",
|
|
79
|
+
outputCostPerToken: "output_cost_per_token",
|
|
80
|
+
supportedOpenaiParams: "supported_openai_params",
|
|
81
|
+
supportsFunctionCalling: "supports_function_calling",
|
|
82
|
+
supportsNativeStreaming: "supports_native_streaming",
|
|
83
|
+
supportsReasoning: "supports_reasoning",
|
|
84
|
+
supportsResponseSchema: "supports_response_schema",
|
|
85
|
+
supportsSystemMessages: "supports_system_messages",
|
|
86
|
+
supportsToolChoice: "supports_tool_choice",
|
|
87
|
+
supportsVision: "supports_vision",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function liteLLMModelInfoToJSON(
|
|
92
|
+
liteLLMModelInfo: LiteLLMModelInfo,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
LiteLLMModelInfo$outboundSchema.parse(liteLLMModelInfo),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type LiteLLMParams = {
|
|
9
|
+
mergeReasoningContentInChoices: boolean;
|
|
10
|
+
model: string;
|
|
11
|
+
useInPassThrough: boolean;
|
|
12
|
+
useLitellmProxy: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type LiteLLMParams$Outbound = {
|
|
17
|
+
merge_reasoning_content_in_choices: boolean;
|
|
18
|
+
model: string;
|
|
19
|
+
use_in_pass_through: boolean;
|
|
20
|
+
use_litellm_proxy: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const LiteLLMParams$outboundSchema: z.ZodType<
|
|
25
|
+
LiteLLMParams$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
LiteLLMParams
|
|
28
|
+
> = z.object({
|
|
29
|
+
mergeReasoningContentInChoices: z.boolean(),
|
|
30
|
+
model: z.string(),
|
|
31
|
+
useInPassThrough: z.boolean(),
|
|
32
|
+
useLitellmProxy: z.boolean(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
|
|
36
|
+
useInPassThrough: "use_in_pass_through",
|
|
37
|
+
useLitellmProxy: "use_litellm_proxy",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function liteLLMParamsToJSON(liteLLMParams: LiteLLMParams): string {
|
|
42
|
+
return JSON.stringify(LiteLLMParams$outboundSchema.parse(liteLLMParams));
|
|
43
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ModelConfigurationResponse = {
|
|
12
|
+
apiKeyEnv?: string | undefined;
|
|
13
|
+
apiVersion?: string | undefined;
|
|
14
|
+
authMode?: string | undefined;
|
|
15
|
+
authType?: string | undefined;
|
|
16
|
+
baseUrl?: string | undefined;
|
|
17
|
+
deploymentName?: string | undefined;
|
|
18
|
+
endpoint?: string | undefined;
|
|
19
|
+
inferenceProfileArn?: string | undefined;
|
|
20
|
+
integrationId?: string | undefined;
|
|
21
|
+
isOpenaiCompatible?: boolean | undefined;
|
|
22
|
+
isTunedModel?: boolean | undefined;
|
|
23
|
+
location?: string | undefined;
|
|
24
|
+
projectId?: string | undefined;
|
|
25
|
+
provider: string;
|
|
26
|
+
region?: string | undefined;
|
|
27
|
+
shouldUseBetaFeatures?: boolean | undefined;
|
|
28
|
+
subtype?: string | undefined;
|
|
29
|
+
workspaceId?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const ModelConfigurationResponse$inboundSchema: z.ZodType<
|
|
34
|
+
ModelConfigurationResponse,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
api_key_env: z.string().optional(),
|
|
39
|
+
api_version: z.string().optional(),
|
|
40
|
+
auth_mode: z.string().optional(),
|
|
41
|
+
auth_type: z.string().optional(),
|
|
42
|
+
base_url: z.string().optional(),
|
|
43
|
+
deployment_name: z.string().optional(),
|
|
44
|
+
endpoint: z.string().optional(),
|
|
45
|
+
inference_profile_arn: z.string().optional(),
|
|
46
|
+
integration_id: z.string().optional(),
|
|
47
|
+
is_openai_compatible: z.boolean().optional(),
|
|
48
|
+
is_tuned_model: z.boolean().optional(),
|
|
49
|
+
location: z.string().optional(),
|
|
50
|
+
project_id: z.string().optional(),
|
|
51
|
+
provider: z.string(),
|
|
52
|
+
region: z.string().optional(),
|
|
53
|
+
should_use_beta_features: z.boolean().optional(),
|
|
54
|
+
subtype: z.string().optional(),
|
|
55
|
+
workspace_id: z.string().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"api_key_env": "apiKeyEnv",
|
|
59
|
+
"api_version": "apiVersion",
|
|
60
|
+
"auth_mode": "authMode",
|
|
61
|
+
"auth_type": "authType",
|
|
62
|
+
"base_url": "baseUrl",
|
|
63
|
+
"deployment_name": "deploymentName",
|
|
64
|
+
"inference_profile_arn": "inferenceProfileArn",
|
|
65
|
+
"integration_id": "integrationId",
|
|
66
|
+
"is_openai_compatible": "isOpenaiCompatible",
|
|
67
|
+
"is_tuned_model": "isTunedModel",
|
|
68
|
+
"project_id": "projectId",
|
|
69
|
+
"should_use_beta_features": "shouldUseBetaFeatures",
|
|
70
|
+
"workspace_id": "workspaceId",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function modelConfigurationResponseFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<ModelConfigurationResponse, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => ModelConfigurationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'ModelConfigurationResponse' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|