@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.31
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/FUNCTIONS.md +3 -5
- package/README.md +91 -95
- package/bin/mcp-server.js +2288 -883
- package/bin/mcp-server.js.map +71 -65
- package/docs/sdks/contacts/README.md +30 -2
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +138 -0
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +7 -3
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/getV2ModelsLitellmModels.d.ts +17 -0
- package/funcs/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/funcs/getV2ModelsLitellmModels.js +105 -0
- package/funcs/getV2ModelsLitellmModels.js.map +1 -0
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/postV2ModelsLitellmImport.d.ts +17 -0
- package/funcs/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/funcs/postV2ModelsLitellmImport.js +117 -0
- package/funcs/postV2ModelsLitellmImport.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +3 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js +26 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +9 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js +65 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +1 -0
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.js.map +1 -1
- package/models/operations/createchunk.d.ts +28 -28
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +35 -33
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +8 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +10 -10
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +36 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -56
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createfeedback.d.ts +8 -8
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +8 -8
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +24 -18
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +20 -18
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +29 -29
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +32 -32
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +7 -4
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -8
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +7 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/evalsageappropriate.d.ts +2 -2
- package/models/operations/evalsageappropriate.js +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
- package/models/operations/evalsgrammar.d.ts +2 -2
- package/models/operations/evalsgrammar.js +2 -2
- package/models/operations/evalslocalization.d.ts +2 -2
- package/models/operations/evalslocalization.js +2 -2
- package/models/operations/evalspii.d.ts +2 -2
- package/models/operations/evalspii.js +2 -2
- package/models/operations/evalsragascoherence.d.ts +2 -2
- package/models/operations/evalsragascoherence.js +2 -2
- package/models/operations/evalsragasconciseness.d.ts +2 -2
- package/models/operations/evalsragasconciseness.js +2 -2
- package/models/operations/evalsragascontextprecision.d.ts +2 -2
- package/models/operations/evalsragascontextprecision.js +2 -2
- package/models/operations/evalsragascorrectness.d.ts +2 -2
- package/models/operations/evalsragascorrectness.js +2 -2
- package/models/operations/evalsragasfaithfulness.d.ts +2 -2
- package/models/operations/evalsragasfaithfulness.js +2 -2
- package/models/operations/evalsragasharmfulness.d.ts +2 -2
- package/models/operations/evalsragasharmfulness.js +2 -2
- package/models/operations/evalsragasmaliciousness.d.ts +2 -2
- package/models/operations/evalsragasmaliciousness.js +2 -2
- package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
- package/models/operations/evalsragasresponserelevancy.js +2 -2
- package/models/operations/evalssentimentclassification.d.ts +2 -2
- package/models/operations/evalssentimentclassification.js +2 -2
- package/models/operations/evalssummarization.d.ts +2 -2
- package/models/operations/evalssummarization.js +2 -2
- package/models/operations/evalstoneofvoice.d.ts +2 -2
- package/models/operations/evalstoneofvoice.js +2 -2
- package/models/operations/evalstranslation.d.ts +2 -2
- package/models/operations/evalstranslation.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +13 -10
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +11 -10
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +88 -88
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +187 -182
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +13 -10
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +11 -10
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -10
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +11 -10
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +185 -0
- package/models/operations/getv2modelslitellmmodels.d.ts.map +1 -0
- package/models/operations/getv2modelslitellmmodels.js +349 -0
- package/models/operations/getv2modelslitellmmodels.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +108 -108
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +141 -144
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +4 -4
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +6 -6
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +13 -10
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +11 -10
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2modelslitellmimport.d.ts +1333 -0
- package/models/operations/postv2modelslitellmimport.d.ts.map +1 -0
- package/models/operations/postv2modelslitellmimport.js +1400 -0
- package/models/operations/postv2modelslitellmimport.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +4 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +6 -6
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +8 -8
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +10 -10
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +38 -38
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -60
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +33 -86
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +41 -64
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/sdk.d.ts +16 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +21 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/filesCreate.ts +11 -4
- package/src/funcs/getV2ModelsLitellmModels.ts +143 -0
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/funcs/postV2ModelsLitellmImport.ts +167 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/createchunk.ts +54 -44
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +18 -18
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +121 -121
- package/src/models/operations/createfeedback.ts +16 -16
- package/src/models/operations/createprompt.ts +41 -39
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +60 -54
- package/src/models/operations/deploymentinvoke.ts +14 -13
- package/src/models/operations/deployments.ts +15 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- package/src/models/operations/evalsageappropriate.ts +4 -4
- package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/src/models/operations/evalsgrammar.ts +4 -4
- package/src/models/operations/evalslocalization.ts +4 -4
- package/src/models/operations/evalspii.ts +4 -4
- package/src/models/operations/evalsragascoherence.ts +4 -4
- package/src/models/operations/evalsragasconciseness.ts +4 -4
- package/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/src/models/operations/evalsragascorrectness.ts +4 -4
- package/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/src/models/operations/evalssentimentclassification.ts +4 -4
- package/src/models/operations/evalssummarization.ts +4 -4
- package/src/models/operations/evalstoneofvoice.ts +4 -4
- package/src/models/operations/evalstranslation.ts +4 -4
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +23 -22
- package/src/models/operations/getevals.ts +339 -364
- package/src/models/operations/getoneprompt.ts +23 -22
- package/src/models/operations/getpromptversion.ts +23 -22
- package/src/models/operations/getv2modelslitellmmodels.ts +530 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/invokeeval.ts +251 -223
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +23 -22
- package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +10 -10
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +21 -19
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +139 -139
- package/src/models/operations/updateprompt.ts +63 -106
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +37 -1
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
13
13
|
*/
|
|
14
|
-
export type Value = string | Array<string>;
|
|
14
|
+
export type Value = string | number | Array<string>;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Feedback submission payload
|
|
@@ -24,7 +24,7 @@ export type CreateFeedbackRequestBody = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
26
26
|
*/
|
|
27
|
-
value: string | Array<string>;
|
|
27
|
+
value: string | number | Array<string>;
|
|
28
28
|
/**
|
|
29
29
|
* The id returned by the [`get_config`]() or [`invoke`](https://docs.orq.ai/reference/post_deployments-invoke-1) endpoints
|
|
30
30
|
*/
|
|
@@ -34,7 +34,7 @@ export type CreateFeedbackRequestBody = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
36
36
|
*/
|
|
37
|
-
export type CreateFeedbackValue = string | Array<string>;
|
|
37
|
+
export type CreateFeedbackValue = string | number | Array<string>;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Successful operation
|
|
@@ -47,7 +47,7 @@ export type CreateFeedbackResponseBody = {
|
|
|
47
47
|
/**
|
|
48
48
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
49
49
|
*/
|
|
50
|
-
value: string | Array<string>;
|
|
50
|
+
value: string | number | Array<string>;
|
|
51
51
|
/**
|
|
52
52
|
* The id returned by the [`get_config`]() or [`invoke`](https://docs.orq.ai/reference/post_deployments-invoke-1) endpoints
|
|
53
53
|
*/
|
|
@@ -57,17 +57,17 @@ export type CreateFeedbackResponseBody = {
|
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
60
|
-
.union([z.string(), z.array(z.string())]);
|
|
60
|
+
.union([z.string(), z.number(), z.array(z.string())]);
|
|
61
61
|
|
|
62
62
|
/** @internal */
|
|
63
|
-
export type Value$Outbound = string | Array<string>;
|
|
63
|
+
export type Value$Outbound = string | number | Array<string>;
|
|
64
64
|
|
|
65
65
|
/** @internal */
|
|
66
66
|
export const Value$outboundSchema: z.ZodType<
|
|
67
67
|
Value$Outbound,
|
|
68
68
|
z.ZodTypeDef,
|
|
69
69
|
Value
|
|
70
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
70
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @internal
|
|
@@ -103,7 +103,7 @@ export const CreateFeedbackRequestBody$inboundSchema: z.ZodType<
|
|
|
103
103
|
unknown
|
|
104
104
|
> = z.object({
|
|
105
105
|
property: z.string(),
|
|
106
|
-
value: z.union([z.string(), z.array(z.string())]),
|
|
106
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
107
107
|
trace_id: z.string(),
|
|
108
108
|
}).transform((v) => {
|
|
109
109
|
return remap$(v, {
|
|
@@ -115,7 +115,7 @@ export const CreateFeedbackRequestBody$inboundSchema: z.ZodType<
|
|
|
115
115
|
/** @internal */
|
|
116
116
|
export type CreateFeedbackRequestBody$Outbound = {
|
|
117
117
|
property: string;
|
|
118
|
-
value: string | Array<string>;
|
|
118
|
+
value: string | number | Array<string>;
|
|
119
119
|
trace_id: string;
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -126,7 +126,7 @@ export const CreateFeedbackRequestBody$outboundSchema: z.ZodType<
|
|
|
126
126
|
CreateFeedbackRequestBody
|
|
127
127
|
> = z.object({
|
|
128
128
|
field: z.string(),
|
|
129
|
-
value: z.union([z.string(), z.array(z.string())]),
|
|
129
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
130
130
|
traceId: z.string(),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -171,17 +171,17 @@ export const CreateFeedbackValue$inboundSchema: z.ZodType<
|
|
|
171
171
|
CreateFeedbackValue,
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
174
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
175
175
|
|
|
176
176
|
/** @internal */
|
|
177
|
-
export type CreateFeedbackValue$Outbound = string | Array<string>;
|
|
177
|
+
export type CreateFeedbackValue$Outbound = string | number | Array<string>;
|
|
178
178
|
|
|
179
179
|
/** @internal */
|
|
180
180
|
export const CreateFeedbackValue$outboundSchema: z.ZodType<
|
|
181
181
|
CreateFeedbackValue$Outbound,
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
CreateFeedbackValue
|
|
184
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
184
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* @internal
|
|
@@ -221,7 +221,7 @@ export const CreateFeedbackResponseBody$inboundSchema: z.ZodType<
|
|
|
221
221
|
unknown
|
|
222
222
|
> = z.object({
|
|
223
223
|
property: z.string(),
|
|
224
|
-
value: z.union([z.string(), z.array(z.string())]),
|
|
224
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
225
225
|
trace_id: z.string(),
|
|
226
226
|
id: z.string(),
|
|
227
227
|
}).transform((v) => {
|
|
@@ -233,7 +233,7 @@ export const CreateFeedbackResponseBody$inboundSchema: z.ZodType<
|
|
|
233
233
|
/** @internal */
|
|
234
234
|
export type CreateFeedbackResponseBody$Outbound = {
|
|
235
235
|
property: string;
|
|
236
|
-
value: string | Array<string>;
|
|
236
|
+
value: string | number | Array<string>;
|
|
237
237
|
trace_id: string;
|
|
238
238
|
id: string;
|
|
239
239
|
};
|
|
@@ -245,7 +245,7 @@ export const CreateFeedbackResponseBody$outboundSchema: z.ZodType<
|
|
|
245
245
|
CreateFeedbackResponseBody
|
|
246
246
|
> = z.object({
|
|
247
247
|
property: z.string(),
|
|
248
|
-
value: z.union([z.string(), z.array(z.string())]),
|
|
248
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
249
249
|
traceId: z.string(),
|
|
250
250
|
id: z.string(),
|
|
251
251
|
}).transform((v) => {
|
|
@@ -60,7 +60,7 @@ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
|
60
60
|
|
|
61
61
|
export type JsonSchema = {
|
|
62
62
|
name: string;
|
|
63
|
-
strict
|
|
63
|
+
strict?: boolean | undefined;
|
|
64
64
|
schema: { [k: string]: any };
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -80,7 +80,7 @@ export type ResponseFormat1 = {
|
|
|
80
80
|
*
|
|
81
81
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
82
82
|
*/
|
|
83
|
-
export type ResponseFormat =
|
|
83
|
+
export type ResponseFormat = ResponseFormat1 | ResponseFormat2;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -182,7 +182,7 @@ export type ModelParameters = {
|
|
|
182
182
|
*
|
|
183
183
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
184
184
|
*/
|
|
185
|
-
responseFormat?:
|
|
185
|
+
responseFormat?: ResponseFormat1 | ResponseFormat2 | null | undefined;
|
|
186
186
|
/**
|
|
187
187
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
188
188
|
*/
|
|
@@ -220,6 +220,7 @@ export const Provider = {
|
|
|
220
220
|
Jina: "jina",
|
|
221
221
|
Togetherai: "togetherai",
|
|
222
222
|
Elevenlabs: "elevenlabs",
|
|
223
|
+
Litellm: "litellm",
|
|
223
224
|
} as const;
|
|
224
225
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
225
226
|
|
|
@@ -366,7 +367,7 @@ export type PromptConfig = {
|
|
|
366
367
|
/**
|
|
367
368
|
* The modality of the model
|
|
368
369
|
*/
|
|
369
|
-
modelType?: ModelType | undefined;
|
|
370
|
+
modelType?: ModelType | null | undefined;
|
|
370
371
|
/**
|
|
371
372
|
* Model Parameters: Not all parameters apply to every model
|
|
372
373
|
*/
|
|
@@ -510,7 +511,7 @@ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
|
|
|
510
511
|
|
|
511
512
|
export type CreatePromptResponseFormatJsonSchema = {
|
|
512
513
|
name: string;
|
|
513
|
-
strict
|
|
514
|
+
strict?: boolean | undefined;
|
|
514
515
|
schema: { [k: string]: any };
|
|
515
516
|
};
|
|
516
517
|
|
|
@@ -531,8 +532,8 @@ export type CreatePromptResponseFormat1 = {
|
|
|
531
532
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
532
533
|
*/
|
|
533
534
|
export type CreatePromptResponseFormat =
|
|
534
|
-
|
|
|
535
|
-
|
|
|
535
|
+
| CreatePromptResponseFormat1
|
|
536
|
+
| CreatePromptResponseFormat2;
|
|
536
537
|
|
|
537
538
|
/**
|
|
538
539
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -641,8 +642,8 @@ export type CreatePromptModelParameters = {
|
|
|
641
642
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
642
643
|
*/
|
|
643
644
|
responseFormat?:
|
|
644
|
-
| CreatePromptResponseFormat2
|
|
645
645
|
| CreatePromptResponseFormat1
|
|
646
|
+
| CreatePromptResponseFormat2
|
|
646
647
|
| null
|
|
647
648
|
| undefined;
|
|
648
649
|
/**
|
|
@@ -682,6 +683,7 @@ export const CreatePromptProvider = {
|
|
|
682
683
|
Jina: "jina",
|
|
683
684
|
Togetherai: "togetherai",
|
|
684
685
|
Elevenlabs: "elevenlabs",
|
|
686
|
+
Litellm: "litellm",
|
|
685
687
|
} as const;
|
|
686
688
|
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
687
689
|
|
|
@@ -844,11 +846,11 @@ export type CreatePromptPromptConfig = {
|
|
|
844
846
|
/**
|
|
845
847
|
* The id of the resource
|
|
846
848
|
*/
|
|
847
|
-
modelDbId?: string | undefined;
|
|
849
|
+
modelDbId?: string | null | undefined;
|
|
848
850
|
/**
|
|
849
851
|
* The modality of the model
|
|
850
852
|
*/
|
|
851
|
-
modelType?: CreatePromptModelType | undefined;
|
|
853
|
+
modelType?: CreatePromptModelType | null | undefined;
|
|
852
854
|
/**
|
|
853
855
|
* Model Parameters: Not all parameters apply to every model
|
|
854
856
|
*/
|
|
@@ -1082,14 +1084,14 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
1082
1084
|
unknown
|
|
1083
1085
|
> = z.object({
|
|
1084
1086
|
name: z.string(),
|
|
1085
|
-
strict: z.boolean(),
|
|
1087
|
+
strict: z.boolean().optional(),
|
|
1086
1088
|
schema: z.record(z.any()),
|
|
1087
1089
|
});
|
|
1088
1090
|
|
|
1089
1091
|
/** @internal */
|
|
1090
1092
|
export type JsonSchema$Outbound = {
|
|
1091
1093
|
name: string;
|
|
1092
|
-
strict
|
|
1094
|
+
strict?: boolean | undefined;
|
|
1093
1095
|
schema: { [k: string]: any };
|
|
1094
1096
|
};
|
|
1095
1097
|
|
|
@@ -1100,7 +1102,7 @@ export const JsonSchema$outboundSchema: z.ZodType<
|
|
|
1100
1102
|
JsonSchema
|
|
1101
1103
|
> = z.object({
|
|
1102
1104
|
name: z.string(),
|
|
1103
|
-
strict: z.boolean(),
|
|
1105
|
+
strict: z.boolean().optional(),
|
|
1104
1106
|
schema: z.record(z.any()),
|
|
1105
1107
|
});
|
|
1106
1108
|
|
|
@@ -1200,14 +1202,14 @@ export const ResponseFormat$inboundSchema: z.ZodType<
|
|
|
1200
1202
|
z.ZodTypeDef,
|
|
1201
1203
|
unknown
|
|
1202
1204
|
> = z.union([
|
|
1203
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1204
1205
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1206
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1205
1207
|
]);
|
|
1206
1208
|
|
|
1207
1209
|
/** @internal */
|
|
1208
1210
|
export type ResponseFormat$Outbound =
|
|
1209
|
-
|
|
|
1210
|
-
|
|
|
1211
|
+
| ResponseFormat1$Outbound
|
|
1212
|
+
| ResponseFormat2$Outbound;
|
|
1211
1213
|
|
|
1212
1214
|
/** @internal */
|
|
1213
1215
|
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1215,8 +1217,8 @@ export const ResponseFormat$outboundSchema: z.ZodType<
|
|
|
1215
1217
|
z.ZodTypeDef,
|
|
1216
1218
|
ResponseFormat
|
|
1217
1219
|
> = z.union([
|
|
1218
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1219
1220
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1221
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1220
1222
|
]);
|
|
1221
1223
|
|
|
1222
1224
|
/**
|
|
@@ -1329,8 +1331,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1329
1331
|
style: z.string().optional(),
|
|
1330
1332
|
responseFormat: z.nullable(
|
|
1331
1333
|
z.union([
|
|
1332
|
-
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1333
1334
|
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1335
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1334
1336
|
]),
|
|
1335
1337
|
).optional(),
|
|
1336
1338
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1358,8 +1360,8 @@ export type ModelParameters$Outbound = {
|
|
|
1358
1360
|
quality?: string | undefined;
|
|
1359
1361
|
style?: string | undefined;
|
|
1360
1362
|
responseFormat?:
|
|
1361
|
-
| ResponseFormat2$Outbound
|
|
1362
1363
|
| ResponseFormat1$Outbound
|
|
1364
|
+
| ResponseFormat2$Outbound
|
|
1363
1365
|
| null
|
|
1364
1366
|
| undefined;
|
|
1365
1367
|
photoRealVersion?: string | undefined;
|
|
@@ -1388,8 +1390,8 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1388
1390
|
style: z.string().optional(),
|
|
1389
1391
|
responseFormat: z.nullable(
|
|
1390
1392
|
z.union([
|
|
1391
|
-
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1392
1393
|
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1394
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1393
1395
|
]),
|
|
1394
1396
|
).optional(),
|
|
1395
1397
|
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
@@ -2192,7 +2194,7 @@ export const PromptConfig$inboundSchema: z.ZodType<
|
|
|
2192
2194
|
> = z.object({
|
|
2193
2195
|
stream: z.boolean().optional(),
|
|
2194
2196
|
model: z.string().optional(),
|
|
2195
|
-
model_type: ModelType$inboundSchema.optional(),
|
|
2197
|
+
model_type: z.nullable(ModelType$inboundSchema).optional(),
|
|
2196
2198
|
model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
|
|
2197
2199
|
provider: Provider$inboundSchema.optional(),
|
|
2198
2200
|
version: z.string().optional(),
|
|
@@ -2208,7 +2210,7 @@ export const PromptConfig$inboundSchema: z.ZodType<
|
|
|
2208
2210
|
export type PromptConfig$Outbound = {
|
|
2209
2211
|
stream?: boolean | undefined;
|
|
2210
2212
|
model?: string | undefined;
|
|
2211
|
-
model_type?: string | undefined;
|
|
2213
|
+
model_type?: string | null | undefined;
|
|
2212
2214
|
model_parameters?: ModelParameters$Outbound | undefined;
|
|
2213
2215
|
provider?: string | undefined;
|
|
2214
2216
|
version?: string | undefined;
|
|
@@ -2223,7 +2225,7 @@ export const PromptConfig$outboundSchema: z.ZodType<
|
|
|
2223
2225
|
> = z.object({
|
|
2224
2226
|
stream: z.boolean().optional(),
|
|
2225
2227
|
model: z.string().optional(),
|
|
2226
|
-
modelType: ModelType$outboundSchema.optional(),
|
|
2228
|
+
modelType: z.nullable(ModelType$outboundSchema).optional(),
|
|
2227
2229
|
modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
|
|
2228
2230
|
provider: Provider$outboundSchema.optional(),
|
|
2229
2231
|
version: z.string().optional(),
|
|
@@ -2614,14 +2616,14 @@ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
2614
2616
|
unknown
|
|
2615
2617
|
> = z.object({
|
|
2616
2618
|
name: z.string(),
|
|
2617
|
-
strict: z.boolean(),
|
|
2619
|
+
strict: z.boolean().optional(),
|
|
2618
2620
|
schema: z.record(z.any()),
|
|
2619
2621
|
});
|
|
2620
2622
|
|
|
2621
2623
|
/** @internal */
|
|
2622
2624
|
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
2623
2625
|
name: string;
|
|
2624
|
-
strict
|
|
2626
|
+
strict?: boolean | undefined;
|
|
2625
2627
|
schema: { [k: string]: any };
|
|
2626
2628
|
};
|
|
2627
2629
|
|
|
@@ -2632,7 +2634,7 @@ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
2632
2634
|
CreatePromptResponseFormatJsonSchema
|
|
2633
2635
|
> = z.object({
|
|
2634
2636
|
name: z.string(),
|
|
2635
|
-
strict: z.boolean(),
|
|
2637
|
+
strict: z.boolean().optional(),
|
|
2636
2638
|
schema: z.record(z.any()),
|
|
2637
2639
|
});
|
|
2638
2640
|
|
|
@@ -2745,14 +2747,14 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
2745
2747
|
z.ZodTypeDef,
|
|
2746
2748
|
unknown
|
|
2747
2749
|
> = z.union([
|
|
2748
|
-
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2749
2750
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2751
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2750
2752
|
]);
|
|
2751
2753
|
|
|
2752
2754
|
/** @internal */
|
|
2753
2755
|
export type CreatePromptResponseFormat$Outbound =
|
|
2754
|
-
|
|
|
2755
|
-
|
|
|
2756
|
+
| CreatePromptResponseFormat1$Outbound
|
|
2757
|
+
| CreatePromptResponseFormat2$Outbound;
|
|
2756
2758
|
|
|
2757
2759
|
/** @internal */
|
|
2758
2760
|
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -2760,8 +2762,8 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
2760
2762
|
z.ZodTypeDef,
|
|
2761
2763
|
CreatePromptResponseFormat
|
|
2762
2764
|
> = z.union([
|
|
2763
|
-
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2764
2765
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2766
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2765
2767
|
]);
|
|
2766
2768
|
|
|
2767
2769
|
/**
|
|
@@ -2878,8 +2880,8 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2878
2880
|
style: z.string().optional(),
|
|
2879
2881
|
responseFormat: z.nullable(
|
|
2880
2882
|
z.union([
|
|
2881
|
-
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2882
2883
|
z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
|
|
2884
|
+
z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
|
|
2883
2885
|
]),
|
|
2884
2886
|
).optional(),
|
|
2885
2887
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -2907,8 +2909,8 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2907
2909
|
quality?: string | undefined;
|
|
2908
2910
|
style?: string | undefined;
|
|
2909
2911
|
responseFormat?:
|
|
2910
|
-
| CreatePromptResponseFormat2$Outbound
|
|
2911
2912
|
| CreatePromptResponseFormat1$Outbound
|
|
2913
|
+
| CreatePromptResponseFormat2$Outbound
|
|
2912
2914
|
| null
|
|
2913
2915
|
| undefined;
|
|
2914
2916
|
photoRealVersion?: string | undefined;
|
|
@@ -2937,8 +2939,8 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
2937
2939
|
style: z.string().optional(),
|
|
2938
2940
|
responseFormat: z.nullable(
|
|
2939
2941
|
z.union([
|
|
2940
|
-
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2941
2942
|
z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
|
|
2943
|
+
z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
|
|
2942
2944
|
]),
|
|
2943
2945
|
).optional(),
|
|
2944
2946
|
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -3778,8 +3780,8 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
3778
3780
|
> = z.object({
|
|
3779
3781
|
stream: z.boolean().optional(),
|
|
3780
3782
|
model: z.string().optional(),
|
|
3781
|
-
model_db_id: z.string().optional(),
|
|
3782
|
-
model_type: CreatePromptModelType$inboundSchema.optional(),
|
|
3783
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
3784
|
+
model_type: z.nullable(CreatePromptModelType$inboundSchema).optional(),
|
|
3783
3785
|
model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
|
|
3784
3786
|
.optional(),
|
|
3785
3787
|
provider: CreatePromptProvider$inboundSchema.optional(),
|
|
@@ -3799,8 +3801,8 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
3799
3801
|
export type CreatePromptPromptConfig$Outbound = {
|
|
3800
3802
|
stream?: boolean | undefined;
|
|
3801
3803
|
model?: string | undefined;
|
|
3802
|
-
model_db_id?: string | undefined;
|
|
3803
|
-
model_type?: string | undefined;
|
|
3804
|
+
model_db_id?: string | null | undefined;
|
|
3805
|
+
model_type?: string | null | undefined;
|
|
3804
3806
|
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
3805
3807
|
provider?: string | undefined;
|
|
3806
3808
|
integration_id?: string | null | undefined;
|
|
@@ -3816,8 +3818,8 @@ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
|
3816
3818
|
> = z.object({
|
|
3817
3819
|
stream: z.boolean().optional(),
|
|
3818
3820
|
model: z.string().optional(),
|
|
3819
|
-
modelDbId: z.string().optional(),
|
|
3820
|
-
modelType: CreatePromptModelType$outboundSchema.optional(),
|
|
3821
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
3822
|
+
modelType: z.nullable(CreatePromptModelType$outboundSchema).optional(),
|
|
3821
3823
|
modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
|
|
3822
3824
|
.optional(),
|
|
3823
3825
|
provider: CreatePromptProvider$outboundSchema.optional(),
|
|
@@ -480,10 +480,10 @@ export type DeploymentCreateMetricMessagesDeveloperMessage = {
|
|
|
480
480
|
};
|
|
481
481
|
|
|
482
482
|
export type DeploymentCreateMetricMessages =
|
|
483
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
483
484
|
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
484
485
|
| DeploymentCreateMetricMessagesSystemMessage
|
|
485
486
|
| DeploymentCreateMetricMessagesUserMessage
|
|
486
|
-
| DeploymentCreateMetricMessagesToolMessage
|
|
487
487
|
| DeploymentCreateMetricMessagesAssistantMessage;
|
|
488
488
|
|
|
489
489
|
/**
|
|
@@ -929,10 +929,10 @@ export type ChoicesDeveloperMessage = {
|
|
|
929
929
|
};
|
|
930
930
|
|
|
931
931
|
export type Choices =
|
|
932
|
+
| ChoicesToolMessage
|
|
932
933
|
| ChoicesDeveloperMessage
|
|
933
934
|
| ChoicesSystemMessage
|
|
934
935
|
| ChoicesUserMessage
|
|
935
|
-
| ChoicesToolMessage
|
|
936
936
|
| ChoicesAssistantMessage;
|
|
937
937
|
|
|
938
938
|
/**
|
|
@@ -963,10 +963,10 @@ export type DeploymentCreateMetricRequestBody = {
|
|
|
963
963
|
*/
|
|
964
964
|
messages?:
|
|
965
965
|
| Array<
|
|
966
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
966
967
|
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
967
968
|
| DeploymentCreateMetricMessagesSystemMessage
|
|
968
969
|
| DeploymentCreateMetricMessagesUserMessage
|
|
969
|
-
| DeploymentCreateMetricMessagesToolMessage
|
|
970
970
|
| DeploymentCreateMetricMessagesAssistantMessage
|
|
971
971
|
>
|
|
972
972
|
| undefined;
|
|
@@ -975,10 +975,10 @@ export type DeploymentCreateMetricRequestBody = {
|
|
|
975
975
|
*/
|
|
976
976
|
choices?:
|
|
977
977
|
| Array<
|
|
978
|
+
| ChoicesToolMessage
|
|
978
979
|
| ChoicesDeveloperMessage
|
|
979
980
|
| ChoicesSystemMessage
|
|
980
981
|
| ChoicesUserMessage
|
|
981
|
-
| ChoicesToolMessage
|
|
982
982
|
| ChoicesAssistantMessage
|
|
983
983
|
>
|
|
984
984
|
| undefined;
|
|
@@ -3065,19 +3065,19 @@ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
|
|
|
3065
3065
|
z.ZodTypeDef,
|
|
3066
3066
|
unknown
|
|
3067
3067
|
> = z.union([
|
|
3068
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
3068
3069
|
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
|
|
3069
3070
|
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
|
|
3070
3071
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
3071
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
3072
3072
|
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
3073
3073
|
]);
|
|
3074
3074
|
|
|
3075
3075
|
/** @internal */
|
|
3076
3076
|
export type DeploymentCreateMetricMessages$Outbound =
|
|
3077
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
3077
3078
|
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
3078
3079
|
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
3079
3080
|
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
3080
|
-
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
3081
3081
|
| DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
3082
3082
|
|
|
3083
3083
|
/** @internal */
|
|
@@ -3086,10 +3086,10 @@ export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
|
3086
3086
|
z.ZodTypeDef,
|
|
3087
3087
|
DeploymentCreateMetricMessages
|
|
3088
3088
|
> = z.union([
|
|
3089
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
3089
3090
|
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
|
|
3090
3091
|
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
|
|
3091
3092
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
3092
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
3093
3093
|
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
3094
3094
|
]);
|
|
3095
3095
|
|
|
@@ -5076,19 +5076,19 @@ export function choicesDeveloperMessageFromJSON(
|
|
|
5076
5076
|
/** @internal */
|
|
5077
5077
|
export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
|
|
5078
5078
|
z.union([
|
|
5079
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5079
5080
|
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
5080
5081
|
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
5081
5082
|
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
5082
|
-
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5083
5083
|
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
5084
5084
|
]);
|
|
5085
5085
|
|
|
5086
5086
|
/** @internal */
|
|
5087
5087
|
export type Choices$Outbound =
|
|
5088
|
+
| ChoicesToolMessage$Outbound
|
|
5088
5089
|
| ChoicesDeveloperMessage$Outbound
|
|
5089
5090
|
| ChoicesSystemMessage$Outbound
|
|
5090
5091
|
| ChoicesUserMessage$Outbound
|
|
5091
|
-
| ChoicesToolMessage$Outbound
|
|
5092
5092
|
| ChoicesAssistantMessage$Outbound;
|
|
5093
5093
|
|
|
5094
5094
|
/** @internal */
|
|
@@ -5097,10 +5097,10 @@ export const Choices$outboundSchema: z.ZodType<
|
|
|
5097
5097
|
z.ZodTypeDef,
|
|
5098
5098
|
Choices
|
|
5099
5099
|
> = z.union([
|
|
5100
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5100
5101
|
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
5101
5102
|
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
5102
5103
|
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
5103
|
-
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5104
5104
|
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
5105
5105
|
]);
|
|
5106
5106
|
|
|
@@ -5192,12 +5192,14 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
5192
5192
|
performance: z.lazy(() => Performance$inboundSchema).optional(),
|
|
5193
5193
|
messages: z.array(
|
|
5194
5194
|
z.union([
|
|
5195
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
5195
5196
|
z.lazy(() =>
|
|
5196
5197
|
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema
|
|
5197
5198
|
),
|
|
5198
|
-
z.lazy(() =>
|
|
5199
|
+
z.lazy(() =>
|
|
5200
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema
|
|
5201
|
+
),
|
|
5199
5202
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
5200
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
5201
5203
|
z.lazy(() =>
|
|
5202
5204
|
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema
|
|
5203
5205
|
),
|
|
@@ -5205,10 +5207,10 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
5205
5207
|
).optional(),
|
|
5206
5208
|
choices: z.array(
|
|
5207
5209
|
z.union([
|
|
5210
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5208
5211
|
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
5209
5212
|
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
5210
5213
|
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
5211
|
-
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
5212
5214
|
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
5213
5215
|
]),
|
|
5214
5216
|
).optional(),
|
|
@@ -5222,19 +5224,19 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
|
|
|
5222
5224
|
performance?: Performance$Outbound | undefined;
|
|
5223
5225
|
messages?:
|
|
5224
5226
|
| Array<
|
|
5227
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
5225
5228
|
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
5226
5229
|
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
5227
5230
|
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
5228
|
-
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
5229
5231
|
| DeploymentCreateMetricMessagesAssistantMessage$Outbound
|
|
5230
5232
|
>
|
|
5231
5233
|
| undefined;
|
|
5232
5234
|
choices?:
|
|
5233
5235
|
| Array<
|
|
5236
|
+
| ChoicesToolMessage$Outbound
|
|
5234
5237
|
| ChoicesDeveloperMessage$Outbound
|
|
5235
5238
|
| ChoicesSystemMessage$Outbound
|
|
5236
5239
|
| ChoicesUserMessage$Outbound
|
|
5237
|
-
| ChoicesToolMessage$Outbound
|
|
5238
5240
|
| ChoicesAssistantMessage$Outbound
|
|
5239
5241
|
>
|
|
5240
5242
|
| undefined;
|
|
@@ -5252,12 +5254,14 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
5252
5254
|
performance: z.lazy(() => Performance$outboundSchema).optional(),
|
|
5253
5255
|
messages: z.array(
|
|
5254
5256
|
z.union([
|
|
5257
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
5255
5258
|
z.lazy(() =>
|
|
5256
5259
|
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema
|
|
5257
5260
|
),
|
|
5258
|
-
z.lazy(() =>
|
|
5261
|
+
z.lazy(() =>
|
|
5262
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema
|
|
5263
|
+
),
|
|
5259
5264
|
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
5260
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
5261
5265
|
z.lazy(() =>
|
|
5262
5266
|
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema
|
|
5263
5267
|
),
|
|
@@ -5265,10 +5269,10 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
5265
5269
|
).optional(),
|
|
5266
5270
|
choices: z.array(
|
|
5267
5271
|
z.union([
|
|
5272
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5268
5273
|
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
5269
5274
|
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
5270
5275
|
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
5271
|
-
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
5272
5276
|
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
5273
5277
|
]),
|
|
5274
5278
|
).optional(),
|