@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.30
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 +1866 -461
- package/bin/mcp-server.js.map +68 -62
- 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/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.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- 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 +16 -10
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +12 -10
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +17 -17
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +20 -20
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +3 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +5 -2
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +3 -2
- package/models/operations/deployments.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 +9 -6
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +7 -6
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +56 -56
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +111 -106
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +9 -6
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +7 -6
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +9 -6
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +7 -6
- 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.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +9 -6
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +7 -6
- 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.js +2 -2
- 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.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +25 -78
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +33 -56
- 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/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 +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createfeedback.ts +16 -16
- package/src/models/operations/createprompt.ts +22 -20
- package/src/models/operations/deploymentgetconfig.ts +34 -28
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +5 -4
- 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 +13 -12
- package/src/models/operations/getevals.ts +155 -180
- package/src/models/operations/getoneprompt.ts +13 -12
- package/src/models/operations/getpromptversion.ts +13 -12
- 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 +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +13 -12
- package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +43 -86
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +37 -1
|
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2399
2399
|
> = z.object({
|
|
2400
2400
|
_id: z.string(),
|
|
2401
2401
|
description: z.string(),
|
|
2402
|
-
created: z.string().default("2025-06-
|
|
2403
|
-
updated: z.string().default("2025-06-
|
|
2402
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2403
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2404
2404
|
guardrail_config: z.union([
|
|
2405
2405
|
z.lazy(() =>
|
|
2406
2406
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2442
2442
|
> = z.object({
|
|
2443
2443
|
id: z.string(),
|
|
2444
2444
|
description: z.string(),
|
|
2445
|
-
created: z.string().default("2025-06-
|
|
2446
|
-
updated: z.string().default("2025-06-
|
|
2445
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2446
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2447
2447
|
guardrailConfig: z.union([
|
|
2448
2448
|
z.lazy(() =>
|
|
2449
2449
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
|
|
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2856
2856
|
> = z.object({
|
|
2857
2857
|
_id: z.string(),
|
|
2858
2858
|
description: z.string(),
|
|
2859
|
-
created: z.string().default("2025-06-
|
|
2860
|
-
updated: z.string().default("2025-06-
|
|
2859
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2860
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2861
2861
|
guardrail_config: z.union([
|
|
2862
2862
|
z.lazy(() =>
|
|
2863
2863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2905
2905
|
> = z.object({
|
|
2906
2906
|
id: z.string(),
|
|
2907
2907
|
description: z.string(),
|
|
2908
|
-
created: z.string().default("2025-06-
|
|
2909
|
-
updated: z.string().default("2025-06-
|
|
2908
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2909
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
2910
2910
|
guardrailConfig: z.union([
|
|
2911
2911
|
z.lazy(() =>
|
|
2912
2912
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
|
|
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3283
3283
|
> = z.object({
|
|
3284
3284
|
_id: z.string(),
|
|
3285
3285
|
description: z.string(),
|
|
3286
|
-
created: z.string().default("2025-06-
|
|
3287
|
-
updated: z.string().default("2025-06-
|
|
3286
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3287
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3288
3288
|
guardrail_config: z.union([
|
|
3289
3289
|
z.lazy(() =>
|
|
3290
3290
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-06-
|
|
3328
|
-
updated: z.string().default("2025-06-
|
|
3327
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3328
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3329
3329
|
guardrailConfig: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema
|
|
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3680
3680
|
> = z.object({
|
|
3681
3681
|
_id: z.string(),
|
|
3682
3682
|
description: z.string(),
|
|
3683
|
-
created: z.string().default("2025-06-
|
|
3684
|
-
updated: z.string().default("2025-06-
|
|
3683
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3684
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3685
3685
|
guardrail_config: z.union([
|
|
3686
3686
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3687
3687
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
3721
3721
|
> = z.object({
|
|
3722
3722
|
id: z.string(),
|
|
3723
3723
|
description: z.string(),
|
|
3724
|
-
created: z.string().default("2025-06-
|
|
3725
|
-
updated: z.string().default("2025-06-
|
|
3724
|
+
created: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3725
|
+
updated: z.string().default("2025-06-16T13:25:09.055Z"),
|
|
3726
3726
|
guardrailConfig: z.union([
|
|
3727
3727
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
3728
3728
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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(),
|
|
@@ -1436,7 +1436,7 @@ export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
|
|
|
1436
1436
|
|
|
1437
1437
|
export type DeploymentGetConfigResponseFormatJsonSchema = {
|
|
1438
1438
|
name: string;
|
|
1439
|
-
strict
|
|
1439
|
+
strict?: boolean | undefined;
|
|
1440
1440
|
schema: { [k: string]: any };
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
@@ -1506,7 +1506,7 @@ export type DeploymentGetConfigReasoningEffort = ClosedEnum<
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Model Parameters: Not all parameters apply to every model
|
|
1508
1508
|
*/
|
|
1509
|
-
export type
|
|
1509
|
+
export type DeploymentGetConfigParameters = {
|
|
1510
1510
|
/**
|
|
1511
1511
|
* Only supported on `chat` and `completion` models.
|
|
1512
1512
|
*/
|
|
@@ -1657,7 +1657,7 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Model Parameters: Not all parameters apply to every model
|
|
1659
1659
|
*/
|
|
1660
|
-
parameters:
|
|
1660
|
+
parameters: DeploymentGetConfigParameters;
|
|
1661
1661
|
/**
|
|
1662
1662
|
* A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
1663
1663
|
*/
|
|
@@ -8780,14 +8780,14 @@ export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
|
|
|
8780
8780
|
unknown
|
|
8781
8781
|
> = z.object({
|
|
8782
8782
|
name: z.string(),
|
|
8783
|
-
strict: z.boolean(),
|
|
8783
|
+
strict: z.boolean().optional(),
|
|
8784
8784
|
schema: z.record(z.any()),
|
|
8785
8785
|
});
|
|
8786
8786
|
|
|
8787
8787
|
/** @internal */
|
|
8788
8788
|
export type DeploymentGetConfigResponseFormatJsonSchema$Outbound = {
|
|
8789
8789
|
name: string;
|
|
8790
|
-
strict
|
|
8790
|
+
strict?: boolean | undefined;
|
|
8791
8791
|
schema: { [k: string]: any };
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
@@ -8799,7 +8799,7 @@ export const DeploymentGetConfigResponseFormatJsonSchema$outboundSchema:
|
|
|
8799
8799
|
DeploymentGetConfigResponseFormatJsonSchema
|
|
8800
8800
|
> = z.object({
|
|
8801
8801
|
name: z.string(),
|
|
8802
|
-
strict: z.boolean(),
|
|
8802
|
+
strict: z.boolean().optional(),
|
|
8803
8803
|
schema: z.record(z.any()),
|
|
8804
8804
|
});
|
|
8805
8805
|
|
|
@@ -9045,8 +9045,8 @@ export namespace DeploymentGetConfigReasoningEffort$ {
|
|
|
9045
9045
|
}
|
|
9046
9046
|
|
|
9047
9047
|
/** @internal */
|
|
9048
|
-
export const
|
|
9049
|
-
|
|
9048
|
+
export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
|
|
9049
|
+
DeploymentGetConfigParameters,
|
|
9050
9050
|
z.ZodTypeDef,
|
|
9051
9051
|
unknown
|
|
9052
9052
|
> = z.object({
|
|
@@ -9080,7 +9080,7 @@ export const ParametersT$inboundSchema: z.ZodType<
|
|
|
9080
9080
|
});
|
|
9081
9081
|
|
|
9082
9082
|
/** @internal */
|
|
9083
|
-
export type
|
|
9083
|
+
export type DeploymentGetConfigParameters$Outbound = {
|
|
9084
9084
|
temperature?: number | undefined;
|
|
9085
9085
|
maxTokens?: number | undefined;
|
|
9086
9086
|
topK?: number | undefined;
|
|
@@ -9105,10 +9105,10 @@ export type ParametersT$Outbound = {
|
|
|
9105
9105
|
};
|
|
9106
9106
|
|
|
9107
9107
|
/** @internal */
|
|
9108
|
-
export const
|
|
9109
|
-
|
|
9108
|
+
export const DeploymentGetConfigParameters$outboundSchema: z.ZodType<
|
|
9109
|
+
DeploymentGetConfigParameters$Outbound,
|
|
9110
9110
|
z.ZodTypeDef,
|
|
9111
|
-
|
|
9111
|
+
DeploymentGetConfigParameters
|
|
9112
9112
|
> = z.object({
|
|
9113
9113
|
temperature: z.number().optional(),
|
|
9114
9114
|
maxTokens: z.number().optional(),
|
|
@@ -9143,26 +9143,32 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
9143
9143
|
* @internal
|
|
9144
9144
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9145
9145
|
*/
|
|
9146
|
-
export namespace
|
|
9147
|
-
/** @deprecated use `
|
|
9148
|
-
export const inboundSchema =
|
|
9149
|
-
/** @deprecated use `
|
|
9150
|
-
export const outboundSchema =
|
|
9151
|
-
/** @deprecated use `
|
|
9152
|
-
export type Outbound =
|
|
9146
|
+
export namespace DeploymentGetConfigParameters$ {
|
|
9147
|
+
/** @deprecated use `DeploymentGetConfigParameters$inboundSchema` instead. */
|
|
9148
|
+
export const inboundSchema = DeploymentGetConfigParameters$inboundSchema;
|
|
9149
|
+
/** @deprecated use `DeploymentGetConfigParameters$outboundSchema` instead. */
|
|
9150
|
+
export const outboundSchema = DeploymentGetConfigParameters$outboundSchema;
|
|
9151
|
+
/** @deprecated use `DeploymentGetConfigParameters$Outbound` instead. */
|
|
9152
|
+
export type Outbound = DeploymentGetConfigParameters$Outbound;
|
|
9153
9153
|
}
|
|
9154
9154
|
|
|
9155
|
-
export function
|
|
9156
|
-
|
|
9155
|
+
export function deploymentGetConfigParametersToJSON(
|
|
9156
|
+
deploymentGetConfigParameters: DeploymentGetConfigParameters,
|
|
9157
|
+
): string {
|
|
9158
|
+
return JSON.stringify(
|
|
9159
|
+
DeploymentGetConfigParameters$outboundSchema.parse(
|
|
9160
|
+
deploymentGetConfigParameters,
|
|
9161
|
+
),
|
|
9162
|
+
);
|
|
9157
9163
|
}
|
|
9158
9164
|
|
|
9159
|
-
export function
|
|
9165
|
+
export function deploymentGetConfigParametersFromJSON(
|
|
9160
9166
|
jsonString: string,
|
|
9161
|
-
): SafeParseResult<
|
|
9167
|
+
): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
|
|
9162
9168
|
return safeParse(
|
|
9163
9169
|
jsonString,
|
|
9164
|
-
(x) =>
|
|
9165
|
-
`Failed to parse '
|
|
9170
|
+
(x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
|
|
9171
|
+
`Failed to parse 'DeploymentGetConfigParameters' from JSON`,
|
|
9166
9172
|
);
|
|
9167
9173
|
}
|
|
9168
9174
|
|
|
@@ -9312,7 +9318,7 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
9312
9318
|
type: DeploymentGetConfigType$inboundSchema.optional(),
|
|
9313
9319
|
version: z.string(),
|
|
9314
9320
|
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
|
|
9315
|
-
parameters: z.lazy(() =>
|
|
9321
|
+
parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
|
|
9316
9322
|
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
9317
9323
|
});
|
|
9318
9324
|
|
|
@@ -9324,7 +9330,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
|
|
|
9324
9330
|
type?: string | undefined;
|
|
9325
9331
|
version: string;
|
|
9326
9332
|
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
9327
|
-
parameters:
|
|
9333
|
+
parameters: DeploymentGetConfigParameters$Outbound;
|
|
9328
9334
|
tools?: Array<Tools$Outbound> | undefined;
|
|
9329
9335
|
};
|
|
9330
9336
|
|
|
@@ -9340,7 +9346,7 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
9340
9346
|
type: DeploymentGetConfigType$outboundSchema.optional(),
|
|
9341
9347
|
version: z.string(),
|
|
9342
9348
|
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
|
|
9343
|
-
parameters: z.lazy(() =>
|
|
9349
|
+
parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
|
|
9344
9350
|
tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
|
|
9345
9351
|
});
|
|
9346
9352
|
|
|
@@ -143,7 +143,7 @@ export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
|
|
|
143
143
|
|
|
144
144
|
export type DeploymentsResponseFormatJsonSchema = {
|
|
145
145
|
name: string;
|
|
146
|
-
strict
|
|
146
|
+
strict?: boolean | undefined;
|
|
147
147
|
schema: { [k: string]: any };
|
|
148
148
|
};
|
|
149
149
|
|
|
@@ -315,6 +315,7 @@ export const DeploymentsProvider = {
|
|
|
315
315
|
Jina: "jina",
|
|
316
316
|
Togetherai: "togetherai",
|
|
317
317
|
Elevenlabs: "elevenlabs",
|
|
318
|
+
Litellm: "litellm",
|
|
318
319
|
} as const;
|
|
319
320
|
export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
|
|
320
321
|
|
|
@@ -974,14 +975,14 @@ export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
974
975
|
unknown
|
|
975
976
|
> = z.object({
|
|
976
977
|
name: z.string(),
|
|
977
|
-
strict: z.boolean(),
|
|
978
|
+
strict: z.boolean().optional(),
|
|
978
979
|
schema: z.record(z.any()),
|
|
979
980
|
});
|
|
980
981
|
|
|
981
982
|
/** @internal */
|
|
982
983
|
export type DeploymentsResponseFormatJsonSchema$Outbound = {
|
|
983
984
|
name: string;
|
|
984
|
-
strict
|
|
985
|
+
strict?: boolean | undefined;
|
|
985
986
|
schema: { [k: string]: any };
|
|
986
987
|
};
|
|
987
988
|
|
|
@@ -992,7 +993,7 @@ export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
992
993
|
DeploymentsResponseFormatJsonSchema
|
|
993
994
|
> = z.object({
|
|
994
995
|
name: z.string(),
|
|
995
|
-
strict: z.boolean(),
|
|
996
|
+
strict: z.boolean().optional(),
|
|
996
997
|
schema: z.record(z.any()),
|
|
997
998
|
});
|
|
998
999
|
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsAgeAppropriateRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
};
|
|
@@ -33,14 +33,14 @@ export const EvalsAgeAppropriateRequestBody$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
|
|
36
|
+
query: z.string(),
|
|
37
37
|
output: z.string(),
|
|
38
38
|
model: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type EvalsAgeAppropriateRequestBody$Outbound = {
|
|
43
|
-
|
|
43
|
+
query: string;
|
|
44
44
|
output: string;
|
|
45
45
|
model: string;
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ export const EvalsAgeAppropriateRequestBody$outboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
EvalsAgeAppropriateRequestBody
|
|
53
53
|
> = z.object({
|
|
54
|
-
|
|
54
|
+
query: z.string(),
|
|
55
55
|
output: z.string(),
|
|
56
56
|
model: z.string(),
|
|
57
57
|
});
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type EvalsFactCheckingKnowledgeBaseRequestBody = {
|
|
11
|
-
|
|
11
|
+
query: string;
|
|
12
12
|
output: string;
|
|
13
13
|
model: string;
|
|
14
14
|
reference: string;
|
|
@@ -37,7 +37,7 @@ export const EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema: z.ZodType<
|
|
|
37
37
|
z.ZodTypeDef,
|
|
38
38
|
unknown
|
|
39
39
|
> = z.object({
|
|
40
|
-
|
|
40
|
+
query: z.string(),
|
|
41
41
|
output: z.string(),
|
|
42
42
|
model: z.string(),
|
|
43
43
|
reference: z.string(),
|
|
@@ -45,7 +45,7 @@ export const EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema: z.ZodType<
|
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
47
|
export type EvalsFactCheckingKnowledgeBaseRequestBody$Outbound = {
|
|
48
|
-
|
|
48
|
+
query: string;
|
|
49
49
|
output: string;
|
|
50
50
|
model: string;
|
|
51
51
|
reference: string;
|
|
@@ -58,7 +58,7 @@ export const EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema:
|
|
|
58
58
|
z.ZodTypeDef,
|
|
59
59
|
EvalsFactCheckingKnowledgeBaseRequestBody
|
|
60
60
|
> = z.object({
|
|
61
|
-
|
|
61
|
+
query: z.string(),
|
|
62
62
|
output: z.string(),
|
|
63
63
|
model: z.string(),
|
|
64
64
|
reference: z.string(),
|