@orq-ai/node 4.15.13 → 4.15.15
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/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/apiKeysCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackSubmit.ts +162 -0
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelFusionsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelFusionsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsList.ts +173 -0
- package/packages/orq-rc/src/funcs/modelFusionsSetEnabled.ts +174 -0
- package/packages/orq-rc/src/funcs/modelFusionsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/tracesGetConversation.ts +174 -0
- package/packages/orq-rc/src/funcs/tracesListFilters.ts +170 -0
- package/packages/orq-rc/src/funcs/tracesQuery.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/alert.ts +7 -7
- package/packages/orq-rc/src/models/components/alerttrigger.ts +5 -4
- package/packages/orq-rc/src/models/components/allprojectsscope.ts +25 -0
- package/packages/orq-rc/src/models/components/annotationfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetlimitsrestresponse.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetrestresponse.ts +11 -12
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/createdatasetrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createmodelfusionrequest.ts +95 -0
- package/packages/orq-rc/src/models/components/createmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +3 -5
- package/packages/orq-rc/src/models/components/deletemodelfusionresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +29 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +24 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +29 -0
- package/packages/orq-rc/src/models/components/fieldinfo.ts +2 -0
- package/packages/orq-rc/src/models/components/getmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/gettraceconversationresponse.ts +63 -0
- package/packages/orq-rc/src/models/components/identity.ts +11 -12
- package/packages/orq-rc/src/models/components/index.ts +24 -2
- package/packages/orq-rc/src/models/components/knowledgesettings.ts +5 -5
- package/packages/orq-rc/src/models/components/listmodelfusionsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listtracefiltersresponse.ts +47 -0
- package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/metadatafilter.ts +33 -0
- package/packages/orq-rc/src/models/components/modelbudgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/modelbudgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/modelfusion.ts +110 -0
- package/packages/orq-rc/src/models/components/modelfusionconfig.ts +104 -0
- package/packages/orq-rc/src/models/components/modelfusionpreset.ts +25 -0
- package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +26 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +16 -0
- package/packages/orq-rc/src/models/components/pricing.ts +8 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +8 -0
- package/packages/orq-rc/src/models/components/project.ts +1 -4
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +14 -0
- package/packages/orq-rc/src/models/components/ratelimit.ts +2 -2
- package/packages/orq-rc/src/models/components/ratelimitrestresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/requestprojectscope.ts +71 -0
- package/packages/orq-rc/src/models/components/responsemeta.ts +3 -3
- package/packages/orq-rc/src/models/components/{internalretrievalconfig.ts → retrievalconfig.ts} +7 -7
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +4 -4
- package/packages/orq-rc/src/models/components/searchlogsresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/searchrerankconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/servertoolusedetails.ts +3 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/sharing.ts +2 -3
- package/packages/orq-rc/src/models/components/singleprojectscope.ts +36 -0
- package/packages/orq-rc/src/models/components/submitfeedbackrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/submitfeedbackresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionrequest.ts +77 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/operations/apikeycreate.ts +6 -26
- package/packages/orq-rc/src/models/operations/apikeyupdate.ts +6 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +15 -29
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +5 -5
- package/packages/orq-rc/src/models/operations/createcompletion.ts +4 -4
- package/packages/orq-rc/src/models/operations/createimage.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +30 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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 +7 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +30 -1
- package/packages/orq-rc/src/models/operations/modelfusiondelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionget.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionlist.ts +53 -0
- package/packages/orq-rc/src/models/operations/modelfusionsetenabled.ts +45 -0
- package/packages/orq-rc/src/models/operations/modelfusionupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/parse.ts +3 -3
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +31 -30
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/skilllist.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/tracesgetconversation.ts +45 -0
- package/packages/orq-rc/src/models/operations/traceslistfilters.ts +39 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +60 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/apikeys.ts +1 -1
- package/packages/orq-rc/src/sdk/evals.ts +1 -1
- package/packages/orq-rc/src/sdk/feedback.ts +29 -4
- package/packages/orq-rc/src/sdk/knowledge.ts +5 -5
- package/packages/orq-rc/src/sdk/modelfusions.ts +118 -0
- package/packages/orq-rc/src/sdk/models.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/traces.ts +37 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/projectscope.ts +0 -35
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
ModelFusionPreset,
|
|
9
|
+
ModelFusionPreset$outboundSchema,
|
|
10
|
+
} from "./modelfusionpreset.js";
|
|
11
|
+
import {
|
|
12
|
+
ModelFusionSynthesisMode,
|
|
13
|
+
ModelFusionSynthesisMode$outboundSchema,
|
|
14
|
+
} from "./modelfusionsynthesismode.js";
|
|
15
|
+
|
|
16
|
+
export type CreateModelFusionRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* Required. Stable lowercase key containing letters, numbers, and hyphens.
|
|
19
|
+
*/
|
|
20
|
+
key: string;
|
|
21
|
+
/**
|
|
22
|
+
* Required. One to eight distinct chat/text model references in provider/model format.
|
|
23
|
+
*/
|
|
24
|
+
panelModels: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Required. Model reference used for strict structured judge output.
|
|
27
|
+
*/
|
|
28
|
+
judgeModel: string;
|
|
29
|
+
synthesisMode: ModelFusionSynthesisMode;
|
|
30
|
+
preset: ModelFusionPreset;
|
|
31
|
+
/**
|
|
32
|
+
* Required for analysis mode and invalid for judge_writes_final mode.
|
|
33
|
+
*/
|
|
34
|
+
orchestratorModel?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Optional. Defaults to true.
|
|
37
|
+
*/
|
|
38
|
+
webTools?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Optional. Defaults to 8 and must be between 0 and 20. Zero disables Fusion-managed tool calls.
|
|
41
|
+
*/
|
|
42
|
+
maxToolCalls?: number | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Optional. Defaults to true.
|
|
45
|
+
*/
|
|
46
|
+
feedRawToSynth?: boolean | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type CreateModelFusionRequest$Outbound = {
|
|
51
|
+
key: string;
|
|
52
|
+
panel_models: Array<string>;
|
|
53
|
+
judge_model: string;
|
|
54
|
+
synthesis_mode: string;
|
|
55
|
+
preset: string;
|
|
56
|
+
orchestrator_model?: string | undefined;
|
|
57
|
+
web_tools?: boolean | undefined;
|
|
58
|
+
max_tool_calls?: number | undefined;
|
|
59
|
+
feed_raw_to_synth?: boolean | undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const CreateModelFusionRequest$outboundSchema: z.ZodType<
|
|
64
|
+
CreateModelFusionRequest$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
CreateModelFusionRequest
|
|
67
|
+
> = z.object({
|
|
68
|
+
key: z.string(),
|
|
69
|
+
panelModels: z.array(z.string()),
|
|
70
|
+
judgeModel: z.string(),
|
|
71
|
+
synthesisMode: ModelFusionSynthesisMode$outboundSchema,
|
|
72
|
+
preset: ModelFusionPreset$outboundSchema,
|
|
73
|
+
orchestratorModel: z.string().optional(),
|
|
74
|
+
webTools: z.boolean().optional(),
|
|
75
|
+
maxToolCalls: z.number().int().optional(),
|
|
76
|
+
feedRawToSynth: z.boolean().optional(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
panelModels: "panel_models",
|
|
80
|
+
judgeModel: "judge_model",
|
|
81
|
+
synthesisMode: "synthesis_mode",
|
|
82
|
+
orchestratorModel: "orchestrator_model",
|
|
83
|
+
webTools: "web_tools",
|
|
84
|
+
maxToolCalls: "max_tool_calls",
|
|
85
|
+
feedRawToSynth: "feed_raw_to_synth",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function createModelFusionRequestToJSON(
|
|
90
|
+
createModelFusionRequest: CreateModelFusionRequest,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
CreateModelFusionRequest$outboundSchema.parse(createModelFusionRequest),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import { ModelFusion, ModelFusion$inboundSchema } from "./modelfusion.js";
|
|
11
|
+
|
|
12
|
+
export type CreateModelFusionResponse = {
|
|
13
|
+
modelFusion: ModelFusion;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const CreateModelFusionResponse$inboundSchema: z.ZodType<
|
|
18
|
+
CreateModelFusionResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
model_fusion: ModelFusion$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"model_fusion": "modelFusion",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function createModelFusionResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<CreateModelFusionResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => CreateModelFusionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'CreateModelFusionResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -9,13 +9,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type DataPoint = {
|
|
11
11
|
/**
|
|
12
|
-
* Bucket start in UTC, RFC 3339. Clients that need epoch
|
|
12
|
+
* Bucket start in UTC, RFC 3339. Clients that need epoch milliseconds
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* and force callers to coerce anyway, so we ship ISO only. Unset for
|
|
18
|
-
* `mode=scalar` rows, which aggregate the whole window.
|
|
15
|
+
* can derive them from this value. Unset for `mode=scalar` rows, which
|
|
16
|
+
* aggregate the whole window.
|
|
19
17
|
*/
|
|
20
18
|
timestamp?: Date | undefined;
|
|
21
19
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteModelFusionResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteModelFusionResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteModelFusionResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteModelFusionResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteModelFusionResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteModelFusionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteModelFusionResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -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
|
+
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 EvaluatorFilter = {
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
displayName?: string | undefined;
|
|
14
|
+
type?: string | undefined;
|
|
15
|
+
outputType?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const EvaluatorFilter$inboundSchema: z.ZodType<
|
|
20
|
+
EvaluatorFilter,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string().optional(),
|
|
25
|
+
display_name: z.string().optional(),
|
|
26
|
+
type: z.string().optional(),
|
|
27
|
+
output_type: z.string().optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"display_name": "displayName",
|
|
31
|
+
"output_type": "outputType",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function evaluatorFilterFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<EvaluatorFilter, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) => EvaluatorFilter$inboundSchema.parse(JSON.parse(x)),
|
|
41
|
+
`Failed to parse 'EvaluatorFilter' from JSON`,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -5,9 +5,26 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponseFunctionOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponseFunctionOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponseFunctionOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
11
28
|
export type ThirtyTwo = {
|
|
12
29
|
type: "grammar_diversity";
|
|
13
30
|
};
|
|
@@ -194,6 +211,10 @@ export type EvaluatorResponseFunction = {
|
|
|
194
211
|
projectId?: string | undefined;
|
|
195
212
|
guardrailConfig?: any | undefined;
|
|
196
213
|
type: "function_eval";
|
|
214
|
+
/**
|
|
215
|
+
* The type of output expected from the evaluator
|
|
216
|
+
*/
|
|
217
|
+
outputType: EvaluatorResponseFunctionOutputType;
|
|
197
218
|
functionParams:
|
|
198
219
|
| FunctionParams1
|
|
199
220
|
| FunctionParams2
|
|
@@ -230,6 +251,11 @@ export type EvaluatorResponseFunction = {
|
|
|
230
251
|
key: string;
|
|
231
252
|
};
|
|
232
253
|
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const EvaluatorResponseFunctionOutputType$inboundSchema: z.ZodNativeEnum<
|
|
256
|
+
typeof EvaluatorResponseFunctionOutputType
|
|
257
|
+
> = z.nativeEnum(EvaluatorResponseFunctionOutputType);
|
|
258
|
+
|
|
233
259
|
/** @internal */
|
|
234
260
|
export const ThirtyTwo$inboundSchema: z.ZodType<
|
|
235
261
|
ThirtyTwo,
|
|
@@ -872,6 +898,7 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
872
898
|
project_id: z.string().optional(),
|
|
873
899
|
guardrail_config: z.any().optional(),
|
|
874
900
|
type: z.literal("function_eval"),
|
|
901
|
+
output_type: EvaluatorResponseFunctionOutputType$inboundSchema,
|
|
875
902
|
function_params: z.union([
|
|
876
903
|
z.lazy(() => FunctionParams1$inboundSchema),
|
|
877
904
|
z.lazy(() => FunctionParams2$inboundSchema),
|
|
@@ -913,6 +940,7 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
913
940
|
"updated_by_id": "updatedById",
|
|
914
941
|
"project_id": "projectId",
|
|
915
942
|
"guardrail_config": "guardrailConfig",
|
|
943
|
+
"output_type": "outputType",
|
|
916
944
|
"function_params": "functionParams",
|
|
917
945
|
});
|
|
918
946
|
});
|
|
@@ -9,6 +9,22 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponseHttpOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponseHttpOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponseHttpOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
12
28
|
export const Method = {
|
|
13
29
|
Get: "GET",
|
|
14
30
|
Post: "POST",
|
|
@@ -27,6 +43,10 @@ export type EvaluatorResponseHttp = {
|
|
|
27
43
|
projectId?: string | undefined;
|
|
28
44
|
guardrailConfig?: any | undefined;
|
|
29
45
|
type: "http_eval";
|
|
46
|
+
/**
|
|
47
|
+
* The type of output expected from the evaluator
|
|
48
|
+
*/
|
|
49
|
+
outputType: EvaluatorResponseHttpOutputType;
|
|
30
50
|
url: string;
|
|
31
51
|
method: Method;
|
|
32
52
|
headers: { [k: string]: string };
|
|
@@ -34,6 +54,11 @@ export type EvaluatorResponseHttp = {
|
|
|
34
54
|
key: string;
|
|
35
55
|
};
|
|
36
56
|
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const EvaluatorResponseHttpOutputType$inboundSchema: z.ZodNativeEnum<
|
|
59
|
+
typeof EvaluatorResponseHttpOutputType
|
|
60
|
+
> = z.nativeEnum(EvaluatorResponseHttpOutputType);
|
|
61
|
+
|
|
37
62
|
/** @internal */
|
|
38
63
|
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
39
64
|
.nativeEnum(Method);
|
|
@@ -52,6 +77,7 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
52
77
|
project_id: z.string().optional(),
|
|
53
78
|
guardrail_config: z.any().optional(),
|
|
54
79
|
type: z.literal("http_eval"),
|
|
80
|
+
output_type: EvaluatorResponseHttpOutputType$inboundSchema,
|
|
55
81
|
url: z.string(),
|
|
56
82
|
method: Method$inboundSchema,
|
|
57
83
|
headers: z.record(z.string()),
|
|
@@ -63,6 +89,7 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
63
89
|
"updated_by_id": "updatedById",
|
|
64
90
|
"project_id": "projectId",
|
|
65
91
|
"guardrail_config": "guardrailConfig",
|
|
92
|
+
"output_type": "outputType",
|
|
66
93
|
});
|
|
67
94
|
});
|
|
68
95
|
|
|
@@ -5,9 +5,26 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponseJsonSchemaOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponseJsonSchemaOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponseJsonSchemaOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
11
28
|
export type EvaluatorResponseJsonSchema = {
|
|
12
29
|
id: string;
|
|
13
30
|
description: string;
|
|
@@ -20,10 +37,20 @@ export type EvaluatorResponseJsonSchema = {
|
|
|
20
37
|
projectId?: string | undefined;
|
|
21
38
|
guardrailConfig?: any | undefined;
|
|
22
39
|
type: "json_schema";
|
|
40
|
+
/**
|
|
41
|
+
* The type of output expected from the evaluator
|
|
42
|
+
*/
|
|
43
|
+
outputType: EvaluatorResponseJsonSchemaOutputType;
|
|
23
44
|
schema: string;
|
|
24
45
|
key: string;
|
|
25
46
|
};
|
|
26
47
|
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const EvaluatorResponseJsonSchemaOutputType$inboundSchema:
|
|
50
|
+
z.ZodNativeEnum<typeof EvaluatorResponseJsonSchemaOutputType> = z.nativeEnum(
|
|
51
|
+
EvaluatorResponseJsonSchemaOutputType,
|
|
52
|
+
);
|
|
53
|
+
|
|
27
54
|
/** @internal */
|
|
28
55
|
export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
29
56
|
EvaluatorResponseJsonSchema,
|
|
@@ -38,6 +65,7 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
38
65
|
project_id: z.string().optional(),
|
|
39
66
|
guardrail_config: z.any().optional(),
|
|
40
67
|
type: z.literal("json_schema"),
|
|
68
|
+
output_type: EvaluatorResponseJsonSchemaOutputType$inboundSchema,
|
|
41
69
|
schema: z.string(),
|
|
42
70
|
key: z.string(),
|
|
43
71
|
}).transform((v) => {
|
|
@@ -46,6 +74,7 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
46
74
|
"updated_by_id": "updatedById",
|
|
47
75
|
"project_id": "projectId",
|
|
48
76
|
"guardrail_config": "guardrailConfig",
|
|
77
|
+
"output_type": "outputType",
|
|
49
78
|
});
|
|
50
79
|
});
|
|
51
80
|
|
|
@@ -9,6 +9,20 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const OutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
25
|
+
|
|
12
26
|
export type CategoricalLabels = {
|
|
13
27
|
value: string;
|
|
14
28
|
description?: string | undefined;
|
|
@@ -74,6 +88,10 @@ export type EvaluatorResponseLlm = {
|
|
|
74
88
|
projectId?: string | undefined;
|
|
75
89
|
guardrailConfig?: any | undefined;
|
|
76
90
|
type: "llm_eval";
|
|
91
|
+
/**
|
|
92
|
+
* The type of output expected from the evaluator
|
|
93
|
+
*/
|
|
94
|
+
outputType: OutputType;
|
|
77
95
|
repetitions?: number | null | undefined;
|
|
78
96
|
prompt: string;
|
|
79
97
|
categories?: Array<string> | null | undefined;
|
|
@@ -85,6 +103,10 @@ export type EvaluatorResponseLlm = {
|
|
|
85
103
|
jury?: Jury | undefined;
|
|
86
104
|
};
|
|
87
105
|
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const OutputType$inboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
108
|
+
.nativeEnum(OutputType);
|
|
109
|
+
|
|
88
110
|
/** @internal */
|
|
89
111
|
export const CategoricalLabels$inboundSchema: z.ZodType<
|
|
90
112
|
CategoricalLabels,
|
|
@@ -277,6 +299,7 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
277
299
|
project_id: z.string().optional(),
|
|
278
300
|
guardrail_config: z.any().optional(),
|
|
279
301
|
type: z.literal("llm_eval"),
|
|
302
|
+
output_type: OutputType$inboundSchema,
|
|
280
303
|
repetitions: z.nullable(z.number().int()).optional(),
|
|
281
304
|
prompt: z.string(),
|
|
282
305
|
categories: z.nullable(z.array(z.string())).optional(),
|
|
@@ -294,6 +317,7 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
294
317
|
"updated_by_id": "updatedById",
|
|
295
318
|
"project_id": "projectId",
|
|
296
319
|
"guardrail_config": "guardrailConfig",
|
|
320
|
+
"output_type": "outputType",
|
|
297
321
|
"categorical_labels": "categoricalLabels",
|
|
298
322
|
"dataset_id": "datasetId",
|
|
299
323
|
});
|
|
@@ -5,9 +5,26 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponsePythonOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponsePythonOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponsePythonOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
11
28
|
export type EvaluatorResponsePython = {
|
|
12
29
|
id: string;
|
|
13
30
|
description: string;
|
|
@@ -21,9 +38,18 @@ export type EvaluatorResponsePython = {
|
|
|
21
38
|
guardrailConfig?: any | undefined;
|
|
22
39
|
code: string;
|
|
23
40
|
type: "python_eval";
|
|
41
|
+
/**
|
|
42
|
+
* The type of output expected from the evaluator
|
|
43
|
+
*/
|
|
44
|
+
outputType: EvaluatorResponsePythonOutputType;
|
|
24
45
|
key: string;
|
|
25
46
|
};
|
|
26
47
|
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const EvaluatorResponsePythonOutputType$inboundSchema: z.ZodNativeEnum<
|
|
50
|
+
typeof EvaluatorResponsePythonOutputType
|
|
51
|
+
> = z.nativeEnum(EvaluatorResponsePythonOutputType);
|
|
52
|
+
|
|
27
53
|
/** @internal */
|
|
28
54
|
export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
29
55
|
EvaluatorResponsePython,
|
|
@@ -39,6 +65,7 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
39
65
|
guardrail_config: z.any().optional(),
|
|
40
66
|
code: z.string(),
|
|
41
67
|
type: z.literal("python_eval"),
|
|
68
|
+
output_type: EvaluatorResponsePythonOutputType$inboundSchema,
|
|
42
69
|
key: z.string(),
|
|
43
70
|
}).transform((v) => {
|
|
44
71
|
return remap$(v, {
|
|
@@ -46,6 +73,7 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
46
73
|
"updated_by_id": "updatedById",
|
|
47
74
|
"project_id": "projectId",
|
|
48
75
|
"guardrail_config": "guardrailConfig",
|
|
76
|
+
"output_type": "outputType",
|
|
49
77
|
});
|
|
50
78
|
});
|
|
51
79
|
|
|
@@ -9,6 +9,22 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponseRagasOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponseRagasOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponseRagasOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
12
28
|
export const RagasMetric = {
|
|
13
29
|
ContextPrecision: "context_precision",
|
|
14
30
|
ContextRecall: "context_recall",
|
|
@@ -37,11 +53,20 @@ export type EvaluatorResponseRagas = {
|
|
|
37
53
|
projectId?: string | undefined;
|
|
38
54
|
guardrailConfig?: any | undefined;
|
|
39
55
|
type: "ragas";
|
|
56
|
+
/**
|
|
57
|
+
* The type of output expected from the evaluator
|
|
58
|
+
*/
|
|
59
|
+
outputType: EvaluatorResponseRagasOutputType;
|
|
40
60
|
ragasMetric: RagasMetric;
|
|
41
61
|
key: string;
|
|
42
62
|
model: string;
|
|
43
63
|
};
|
|
44
64
|
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const EvaluatorResponseRagasOutputType$inboundSchema: z.ZodNativeEnum<
|
|
67
|
+
typeof EvaluatorResponseRagasOutputType
|
|
68
|
+
> = z.nativeEnum(EvaluatorResponseRagasOutputType);
|
|
69
|
+
|
|
45
70
|
/** @internal */
|
|
46
71
|
export const RagasMetric$inboundSchema: z.ZodNativeEnum<typeof RagasMetric> = z
|
|
47
72
|
.nativeEnum(RagasMetric);
|
|
@@ -60,6 +85,7 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
60
85
|
project_id: z.string().optional(),
|
|
61
86
|
guardrail_config: z.any().optional(),
|
|
62
87
|
type: z.literal("ragas"),
|
|
88
|
+
output_type: EvaluatorResponseRagasOutputType$inboundSchema,
|
|
63
89
|
ragas_metric: RagasMetric$inboundSchema,
|
|
64
90
|
key: z.string(),
|
|
65
91
|
model: z.string(),
|
|
@@ -69,6 +95,7 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
69
95
|
"updated_by_id": "updatedById",
|
|
70
96
|
"project_id": "projectId",
|
|
71
97
|
"guardrail_config": "guardrailConfig",
|
|
98
|
+
"output_type": "outputType",
|
|
72
99
|
"ragas_metric": "ragasMetric",
|
|
73
100
|
});
|
|
74
101
|
});
|
|
@@ -5,9 +5,26 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The type of output expected from the evaluator
|
|
14
|
+
*/
|
|
15
|
+
export const EvaluatorResponseTypescriptOutputType = {
|
|
16
|
+
Boolean: "boolean",
|
|
17
|
+
Categorical: "categorical",
|
|
18
|
+
Number: "number",
|
|
19
|
+
String: "string",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The type of output expected from the evaluator
|
|
23
|
+
*/
|
|
24
|
+
export type EvaluatorResponseTypescriptOutputType = ClosedEnum<
|
|
25
|
+
typeof EvaluatorResponseTypescriptOutputType
|
|
26
|
+
>;
|
|
27
|
+
|
|
11
28
|
export type EvaluatorResponseTypescript = {
|
|
12
29
|
id: string;
|
|
13
30
|
description: string;
|
|
@@ -21,9 +38,19 @@ export type EvaluatorResponseTypescript = {
|
|
|
21
38
|
guardrailConfig?: any | undefined;
|
|
22
39
|
code: string;
|
|
23
40
|
type: "typescript_eval";
|
|
41
|
+
/**
|
|
42
|
+
* The type of output expected from the evaluator
|
|
43
|
+
*/
|
|
44
|
+
outputType: EvaluatorResponseTypescriptOutputType;
|
|
24
45
|
key: string;
|
|
25
46
|
};
|
|
26
47
|
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const EvaluatorResponseTypescriptOutputType$inboundSchema:
|
|
50
|
+
z.ZodNativeEnum<typeof EvaluatorResponseTypescriptOutputType> = z.nativeEnum(
|
|
51
|
+
EvaluatorResponseTypescriptOutputType,
|
|
52
|
+
);
|
|
53
|
+
|
|
27
54
|
/** @internal */
|
|
28
55
|
export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
29
56
|
EvaluatorResponseTypescript,
|
|
@@ -39,6 +66,7 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
39
66
|
guardrail_config: z.any().optional(),
|
|
40
67
|
code: z.string(),
|
|
41
68
|
type: z.literal("typescript_eval"),
|
|
69
|
+
output_type: EvaluatorResponseTypescriptOutputType$inboundSchema,
|
|
42
70
|
key: z.string(),
|
|
43
71
|
}).transform((v) => {
|
|
44
72
|
return remap$(v, {
|
|
@@ -46,6 +74,7 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
46
74
|
"updated_by_id": "updatedById",
|
|
47
75
|
"project_id": "projectId",
|
|
48
76
|
"guardrail_config": "guardrailConfig",
|
|
77
|
+
"output_type": "outputType",
|
|
49
78
|
});
|
|
50
79
|
});
|
|
51
80
|
|
|
@@ -10,6 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
export type FieldInfo = {
|
|
11
11
|
name?: string | undefined;
|
|
12
12
|
type?: string | undefined;
|
|
13
|
+
operators?: Array<string> | undefined;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
/** @internal */
|
|
@@ -20,6 +21,7 @@ export const FieldInfo$inboundSchema: z.ZodType<
|
|
|
20
21
|
> = z.object({
|
|
21
22
|
name: z.string().optional(),
|
|
22
23
|
type: z.string().optional(),
|
|
24
|
+
operators: z.array(z.string()).optional(),
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
export function fieldInfoFromJSON(
|