@orq-ai/node 4.15.0-rc.53 → 4.15.0-rc.55
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 +38 -3
- package/README.md +259 -72
- package/examples/deploymentsInvoke.example.ts +62 -0
- package/funcs/datasetsList.js +1 -0
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +18 -0
- package/funcs/deploymentsInvoke.d.ts.map +1 -0
- package/funcs/deploymentsInvoke.js +116 -0
- package/funcs/deploymentsInvoke.js.map +1 -0
- package/funcs/deploymentsStream.d.ts +18 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +129 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/evalsAll.d.ts +2 -2
- package/funcs/evalsAll.d.ts.map +1 -1
- package/funcs/evalsAll.js +5 -2
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsCreate.d.ts +2 -1
- package/funcs/evalsCreate.d.ts.map +1 -1
- package/funcs/evalsCreate.js +19 -4
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.d.ts +2 -2
- package/funcs/evalsDelete.d.ts.map +1 -1
- package/funcs/evalsDelete.js +6 -2
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsGet.d.ts +2 -1
- package/funcs/evalsGet.d.ts.map +1 -1
- package/funcs/evalsGet.js +5 -1
- package/funcs/evalsGet.js.map +1 -1
- package/funcs/evalsUpdate.d.ts +2 -1
- package/funcs/evalsUpdate.d.ts.map +1 -1
- package/funcs/evalsUpdate.js +5 -1
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/skillsUpdate.d.ts +1 -1
- package/funcs/skillsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +8 -8
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +10 -9
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/chunkingconfiguration.d.ts +30 -30
- package/models/components/chunkingconfiguration.d.ts.map +1 -1
- package/models/components/chunkingconfiguration.js +36 -37
- package/models/components/chunkingconfiguration.js.map +1 -1
- package/models/components/evaluatorresponsefunction.d.ts +230 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
- package/models/components/evaluatorresponsefunction.js +420 -0
- package/models/components/evaluatorresponsefunction.js.map +1 -0
- package/models/components/evaluatorresponsehttp.d.ts +37 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
- package/models/components/evaluatorresponsehttp.js +77 -0
- package/models/components/evaluatorresponsehttp.js.map +1 -0
- package/models/components/evaluatorresponsejsonschema.d.ts +22 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
- package/models/components/{listevaluatorsresponse.js → evaluatorresponsejsonschema.js} +20 -16
- package/models/components/evaluatorresponsejsonschema.js.map +1 -0
- package/models/components/evaluatorresponsellm.d.ts +101 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -0
- package/models/components/evaluatorresponsellm.js +181 -0
- package/models/components/evaluatorresponsellm.js.map +1 -0
- package/models/components/evaluatorresponsepython.d.ts +22 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -0
- package/models/components/evaluatorresponsepython.js +67 -0
- package/models/components/evaluatorresponsepython.js.map +1 -0
- package/models/components/evaluatorresponseragas.d.ts +41 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -0
- package/models/components/evaluatorresponseragas.js +86 -0
- package/models/components/evaluatorresponseragas.js.map +1 -0
- package/models/components/evaluatorresponsetypescript.d.ts +22 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
- package/models/components/evaluatorresponsetypescript.js +67 -0
- package/models/components/evaluatorresponsetypescript.js.map +1 -0
- package/models/components/index.d.ts +8 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -2
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1544 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1109 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/queryreportrequest.d.ts +5 -5
- package/models/components/queryreportrequest.d.ts.map +1 -1
- package/models/components/queryreportrequest.js +6 -6
- package/models/components/queryreportrequest.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchknowledgerequest.d.ts +176 -176
- package/models/components/searchknowledgerequest.d.ts.map +1 -1
- package/models/components/searchknowledgerequest.js +211 -222
- package/models/components/searchknowledgerequest.js.map +1 -1
- package/models/components/updatememorystorerequest.d.ts +5 -0
- package/models/components/updatememorystorerequest.d.ts.map +1 -1
- package/models/components/updatememorystorerequest.js +6 -0
- package/models/components/updatememorystorerequest.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +1 -1
- package/models/errors/createeval.d.ts +23 -0
- package/models/errors/createeval.d.ts.map +1 -0
- package/models/errors/createeval.js +68 -0
- package/models/errors/createeval.js.map +1 -0
- package/models/errors/deleteeval.d.ts +43 -0
- package/models/errors/deleteeval.d.ts.map +1 -0
- package/models/errors/deleteeval.js +94 -0
- package/models/errors/deleteeval.js.map +1 -0
- package/models/errors/geteval.d.ts +23 -0
- package/models/errors/geteval.d.ts.map +1 -0
- package/models/errors/geteval.js +68 -0
- package/models/errors/geteval.js.map +1 -0
- package/models/errors/getevals.d.ts +23 -0
- package/models/errors/getevals.d.ts.map +1 -0
- package/models/{components/deleteevaluatorresponse.js → errors/getevals.js} +28 -8
- package/models/errors/getevals.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updateeval.d.ts +23 -0
- package/models/errors/updateeval.d.ts.map +1 -0
- package/models/errors/updateeval.js +68 -0
- package/models/errors/updateeval.js.map +1 -0
- package/models/operations/createchatcompletion.d.ts +58 -58
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +81 -80
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createeval.d.ts +305 -4
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +258 -3
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +4 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -6
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.d.ts +4 -4
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +9 -9
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +442 -442
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +481 -485
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +367 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -0
- package/models/operations/deploymentinvoke.js +373 -0
- package/models/operations/deploymentinvoke.js.map +1 -0
- package/models/operations/deployments.d.ts +16 -16
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +16 -18
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1899 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1488 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.d.ts +804 -2
- package/models/operations/geteval.d.ts.map +1 -1
- package/models/operations/geteval.js +1244 -2
- package/models/operations/geteval.js.map +1 -1
- package/models/operations/getevals.d.ts +41 -3
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +52 -3
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- 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/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.d.ts +5 -0
- package/models/operations/listdatasets.d.ts.map +1 -1
- package/models/operations/listdatasets.js +3 -1
- package/models/operations/listdatasets.js.map +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/updateeval.d.ts +194 -6
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +155 -4
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/deployments.d.ts +16 -0
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +20 -0
- package/sdk/deployments.js.map +1 -1
- package/sdk/evals.d.ts +3 -3
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js.map +1 -1
- package/sdk/skills.d.ts +1 -1
- package/sdk/skills.js +1 -1
- package/src/funcs/datasetsList.ts +1 -0
- package/src/funcs/deploymentsInvoke.ts +170 -0
- package/src/funcs/deploymentsStream.ts +180 -0
- package/src/funcs/evalsAll.ts +14 -6
- package/src/funcs/evalsCreate.ts +31 -5
- package/src/funcs/evalsDelete.ts +19 -6
- package/src/funcs/evalsGet.ts +10 -1
- package/src/funcs/evalsUpdate.ts +10 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +17 -12
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/chunkingconfiguration.ts +150 -110
- package/src/models/components/evaluatorresponsefunction.ts +928 -0
- package/src/models/components/evaluatorresponsehttp.ts +77 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +60 -0
- package/src/models/components/evaluatorresponsellm.ts +310 -0
- package/src/models/components/evaluatorresponsepython.ts +60 -0
- package/src/models/components/evaluatorresponseragas.ts +84 -0
- package/src/models/components/evaluatorresponsetypescript.ts +60 -0
- package/src/models/components/index.ts +8 -2
- package/src/models/components/invokedeploymentrequest.ts +3444 -0
- package/src/models/components/queryreportrequest.ts +11 -10
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchknowledgerequest.ts +680 -469
- package/src/models/components/updatememorystorerequest.ts +11 -0
- package/src/models/components/updateskillrequest.ts +1 -1
- package/src/models/errors/createeval.ts +51 -0
- package/src/models/errors/deleteeval.ts +96 -0
- package/src/models/errors/geteval.ts +51 -0
- package/src/models/errors/getevals.ts +51 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/updateeval.ts +51 -0
- package/src/models/operations/createchatcompletion.ts +313 -248
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createeval.ts +628 -6
- package/src/models/operations/createprompt.ts +7 -6
- package/src/models/operations/createtool.ts +13 -11
- package/src/models/operations/deploymentgetconfig.ts +1631 -1141
- package/src/models/operations/deploymentinvoke.ts +732 -0
- package/src/models/operations/deployments.ts +46 -42
- package/src/models/operations/deploymentstream.ts +4102 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +2751 -3
- package/src/models/operations/getevals.ts +123 -5
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +8 -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/updateeval.ts +393 -9
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/deployments.ts +38 -0
- package/src/sdk/evals.ts +3 -3
- package/src/sdk/skills.ts +1 -1
- package/examples/deploymentsList.example.ts +0 -26
- package/models/components/deleteevaluatorresponse.d.ts +0 -8
- package/models/components/deleteevaluatorresponse.d.ts.map +0 -1
- package/models/components/deleteevaluatorresponse.js.map +0 -1
- package/models/components/listevaluatorsresponse.d.ts +0 -16
- package/models/components/listevaluatorsresponse.d.ts.map +0 -1
- package/models/components/listevaluatorsresponse.js.map +0 -1
- package/src/models/components/deleteevaluatorresponse.ts +0 -27
- package/src/models/components/listevaluatorsresponse.ts +0 -59
|
@@ -0,0 +1,77 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const Method = {
|
|
13
|
+
Get: "GET",
|
|
14
|
+
Post: "POST",
|
|
15
|
+
} as const;
|
|
16
|
+
export type Method = ClosedEnum<typeof Method>;
|
|
17
|
+
|
|
18
|
+
export type EvaluatorResponseHttp = {
|
|
19
|
+
id: string;
|
|
20
|
+
description: string;
|
|
21
|
+
created: string;
|
|
22
|
+
updated: string;
|
|
23
|
+
updatedById?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the project owning this evaluator.
|
|
26
|
+
*/
|
|
27
|
+
projectId?: string | undefined;
|
|
28
|
+
guardrailConfig?: any | undefined;
|
|
29
|
+
type: "http_eval";
|
|
30
|
+
url: string;
|
|
31
|
+
method: Method;
|
|
32
|
+
headers: { [k: string]: string };
|
|
33
|
+
payload: { [k: string]: any };
|
|
34
|
+
key: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
39
|
+
.nativeEnum(Method);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
43
|
+
EvaluatorResponseHttp,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
_id: z.string(),
|
|
48
|
+
description: z.string(),
|
|
49
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
50
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
51
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
52
|
+
project_id: z.string().optional(),
|
|
53
|
+
guardrail_config: z.any().optional(),
|
|
54
|
+
type: z.literal("http_eval"),
|
|
55
|
+
url: z.string(),
|
|
56
|
+
method: Method$inboundSchema,
|
|
57
|
+
headers: z.record(z.string()),
|
|
58
|
+
payload: z.record(z.any()),
|
|
59
|
+
key: z.string(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
"_id": "id",
|
|
63
|
+
"updated_by_id": "updatedById",
|
|
64
|
+
"project_id": "projectId",
|
|
65
|
+
"guardrail_config": "guardrailConfig",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function evaluatorResponseHttpFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<EvaluatorResponseHttp, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => EvaluatorResponseHttp$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'EvaluatorResponseHttp' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 EvaluatorResponseJsonSchema = {
|
|
12
|
+
id: string;
|
|
13
|
+
description: string;
|
|
14
|
+
created: string;
|
|
15
|
+
updated: string;
|
|
16
|
+
updatedById?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the project owning this evaluator.
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
guardrailConfig?: any | undefined;
|
|
22
|
+
type: "json_schema";
|
|
23
|
+
schema: string;
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
29
|
+
EvaluatorResponseJsonSchema,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
_id: z.string(),
|
|
34
|
+
description: z.string(),
|
|
35
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
36
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
37
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
|
+
project_id: z.string().optional(),
|
|
39
|
+
guardrail_config: z.any().optional(),
|
|
40
|
+
type: z.literal("json_schema"),
|
|
41
|
+
schema: z.string(),
|
|
42
|
+
key: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"_id": "id",
|
|
46
|
+
"updated_by_id": "updatedById",
|
|
47
|
+
"project_id": "projectId",
|
|
48
|
+
"guardrail_config": "guardrailConfig",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function evaluatorResponseJsonSchemaFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<EvaluatorResponseJsonSchema, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => EvaluatorResponseJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'EvaluatorResponseJsonSchema' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CategoricalLabels = {
|
|
13
|
+
value: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const Mode = {
|
|
18
|
+
Single: "single",
|
|
19
|
+
Jury: "jury",
|
|
20
|
+
} as const;
|
|
21
|
+
export type Mode = ClosedEnum<typeof Mode>;
|
|
22
|
+
|
|
23
|
+
export type Retry = {
|
|
24
|
+
count: number;
|
|
25
|
+
onCodes?: Array<number> | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type Fallbacks = {
|
|
29
|
+
model: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type Judges = {
|
|
33
|
+
model: string;
|
|
34
|
+
retry?: Retry | undefined;
|
|
35
|
+
fallbacks?: Array<Fallbacks> | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type EvaluatorResponseLlmRetry = {
|
|
39
|
+
count: number;
|
|
40
|
+
onCodes?: Array<number> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type EvaluatorResponseLlmFallbacks = {
|
|
44
|
+
model: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type ReplacementJudges = {
|
|
48
|
+
model: string;
|
|
49
|
+
retry?: EvaluatorResponseLlmRetry | undefined;
|
|
50
|
+
fallbacks?: Array<EvaluatorResponseLlmFallbacks> | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const TieValue = {
|
|
54
|
+
Tie: "Tie",
|
|
55
|
+
} as const;
|
|
56
|
+
export type TieValue = ClosedEnum<typeof TieValue>;
|
|
57
|
+
|
|
58
|
+
export type Jury = {
|
|
59
|
+
judges: Array<Judges>;
|
|
60
|
+
replacementJudges?: Array<ReplacementJudges> | undefined;
|
|
61
|
+
minSuccessfulJudges: number;
|
|
62
|
+
tieValue: TieValue;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type EvaluatorResponseLlm = {
|
|
66
|
+
id: string;
|
|
67
|
+
description: string;
|
|
68
|
+
created: string;
|
|
69
|
+
updated: string;
|
|
70
|
+
updatedById?: string | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier of the project owning this evaluator.
|
|
73
|
+
*/
|
|
74
|
+
projectId?: string | undefined;
|
|
75
|
+
guardrailConfig?: any | undefined;
|
|
76
|
+
type: "llm_eval";
|
|
77
|
+
repetitions?: number | null | undefined;
|
|
78
|
+
prompt: string;
|
|
79
|
+
categories?: Array<string> | null | undefined;
|
|
80
|
+
categoricalLabels?: Array<CategoricalLabels> | null | undefined;
|
|
81
|
+
datasetId?: string | null | undefined;
|
|
82
|
+
key: string;
|
|
83
|
+
mode: Mode;
|
|
84
|
+
model?: string | undefined;
|
|
85
|
+
jury?: Jury | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const CategoricalLabels$inboundSchema: z.ZodType<
|
|
90
|
+
CategoricalLabels,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.object({
|
|
94
|
+
value: z.string(),
|
|
95
|
+
description: z.string().optional(),
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export function categoricalLabelsFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<CategoricalLabels, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => CategoricalLabels$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'CategoricalLabels' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
|
|
110
|
+
Mode,
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const Retry$inboundSchema: z.ZodType<Retry, z.ZodTypeDef, unknown> = z
|
|
115
|
+
.object({
|
|
116
|
+
count: z.number().int().default(2),
|
|
117
|
+
on_codes: z.array(z.number().int()).optional(),
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
"on_codes": "onCodes",
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export function retryFromJSON(
|
|
125
|
+
jsonString: string,
|
|
126
|
+
): SafeParseResult<Retry, SDKValidationError> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) => Retry$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'Retry' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const Fallbacks$inboundSchema: z.ZodType<
|
|
136
|
+
Fallbacks,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
unknown
|
|
139
|
+
> = z.object({
|
|
140
|
+
model: z.string(),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function fallbacksFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<Fallbacks, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => Fallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'Fallbacks' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const Judges$inboundSchema: z.ZodType<Judges, z.ZodTypeDef, unknown> = z
|
|
155
|
+
.object({
|
|
156
|
+
model: z.string(),
|
|
157
|
+
retry: z.lazy(() => Retry$inboundSchema).optional(),
|
|
158
|
+
fallbacks: z.array(z.lazy(() => Fallbacks$inboundSchema)).optional(),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
export function judgesFromJSON(
|
|
162
|
+
jsonString: string,
|
|
163
|
+
): SafeParseResult<Judges, SDKValidationError> {
|
|
164
|
+
return safeParse(
|
|
165
|
+
jsonString,
|
|
166
|
+
(x) => Judges$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
+
`Failed to parse 'Judges' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const EvaluatorResponseLlmRetry$inboundSchema: z.ZodType<
|
|
173
|
+
EvaluatorResponseLlmRetry,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
unknown
|
|
176
|
+
> = z.object({
|
|
177
|
+
count: z.number().int().default(2),
|
|
178
|
+
on_codes: z.array(z.number().int()).optional(),
|
|
179
|
+
}).transform((v) => {
|
|
180
|
+
return remap$(v, {
|
|
181
|
+
"on_codes": "onCodes",
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export function evaluatorResponseLlmRetryFromJSON(
|
|
186
|
+
jsonString: string,
|
|
187
|
+
): SafeParseResult<EvaluatorResponseLlmRetry, SDKValidationError> {
|
|
188
|
+
return safeParse(
|
|
189
|
+
jsonString,
|
|
190
|
+
(x) => EvaluatorResponseLlmRetry$inboundSchema.parse(JSON.parse(x)),
|
|
191
|
+
`Failed to parse 'EvaluatorResponseLlmRetry' from JSON`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const EvaluatorResponseLlmFallbacks$inboundSchema: z.ZodType<
|
|
197
|
+
EvaluatorResponseLlmFallbacks,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
unknown
|
|
200
|
+
> = z.object({
|
|
201
|
+
model: z.string(),
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
export function evaluatorResponseLlmFallbacksFromJSON(
|
|
205
|
+
jsonString: string,
|
|
206
|
+
): SafeParseResult<EvaluatorResponseLlmFallbacks, SDKValidationError> {
|
|
207
|
+
return safeParse(
|
|
208
|
+
jsonString,
|
|
209
|
+
(x) => EvaluatorResponseLlmFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
210
|
+
`Failed to parse 'EvaluatorResponseLlmFallbacks' from JSON`,
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const ReplacementJudges$inboundSchema: z.ZodType<
|
|
216
|
+
ReplacementJudges,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
unknown
|
|
219
|
+
> = z.object({
|
|
220
|
+
model: z.string(),
|
|
221
|
+
retry: z.lazy(() => EvaluatorResponseLlmRetry$inboundSchema).optional(),
|
|
222
|
+
fallbacks: z.array(z.lazy(() => EvaluatorResponseLlmFallbacks$inboundSchema))
|
|
223
|
+
.optional(),
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
export function replacementJudgesFromJSON(
|
|
227
|
+
jsonString: string,
|
|
228
|
+
): SafeParseResult<ReplacementJudges, SDKValidationError> {
|
|
229
|
+
return safeParse(
|
|
230
|
+
jsonString,
|
|
231
|
+
(x) => ReplacementJudges$inboundSchema.parse(JSON.parse(x)),
|
|
232
|
+
`Failed to parse 'ReplacementJudges' from JSON`,
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** @internal */
|
|
237
|
+
export const TieValue$inboundSchema: z.ZodNativeEnum<typeof TieValue> = z
|
|
238
|
+
.nativeEnum(TieValue);
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const Jury$inboundSchema: z.ZodType<Jury, z.ZodTypeDef, unknown> = z
|
|
242
|
+
.object({
|
|
243
|
+
judges: z.array(z.lazy(() => Judges$inboundSchema)),
|
|
244
|
+
replacement_judges: z.array(z.lazy(() => ReplacementJudges$inboundSchema))
|
|
245
|
+
.optional(),
|
|
246
|
+
min_successful_judges: z.number().int().default(2),
|
|
247
|
+
tie_value: TieValue$inboundSchema.default("Tie"),
|
|
248
|
+
}).transform((v) => {
|
|
249
|
+
return remap$(v, {
|
|
250
|
+
"replacement_judges": "replacementJudges",
|
|
251
|
+
"min_successful_judges": "minSuccessfulJudges",
|
|
252
|
+
"tie_value": "tieValue",
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
export function juryFromJSON(
|
|
257
|
+
jsonString: string,
|
|
258
|
+
): SafeParseResult<Jury, SDKValidationError> {
|
|
259
|
+
return safeParse(
|
|
260
|
+
jsonString,
|
|
261
|
+
(x) => Jury$inboundSchema.parse(JSON.parse(x)),
|
|
262
|
+
`Failed to parse 'Jury' from JSON`,
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
268
|
+
EvaluatorResponseLlm,
|
|
269
|
+
z.ZodTypeDef,
|
|
270
|
+
unknown
|
|
271
|
+
> = z.object({
|
|
272
|
+
_id: z.string(),
|
|
273
|
+
description: z.string(),
|
|
274
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
275
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
276
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
277
|
+
project_id: z.string().optional(),
|
|
278
|
+
guardrail_config: z.any().optional(),
|
|
279
|
+
type: z.literal("llm_eval"),
|
|
280
|
+
repetitions: z.nullable(z.number().int()).optional(),
|
|
281
|
+
prompt: z.string(),
|
|
282
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
283
|
+
categorical_labels: z.nullable(
|
|
284
|
+
z.array(z.lazy(() => CategoricalLabels$inboundSchema)),
|
|
285
|
+
).optional(),
|
|
286
|
+
dataset_id: z.nullable(z.string()).optional(),
|
|
287
|
+
key: z.string(),
|
|
288
|
+
mode: Mode$inboundSchema,
|
|
289
|
+
model: z.string().optional(),
|
|
290
|
+
jury: z.lazy(() => Jury$inboundSchema).optional(),
|
|
291
|
+
}).transform((v) => {
|
|
292
|
+
return remap$(v, {
|
|
293
|
+
"_id": "id",
|
|
294
|
+
"updated_by_id": "updatedById",
|
|
295
|
+
"project_id": "projectId",
|
|
296
|
+
"guardrail_config": "guardrailConfig",
|
|
297
|
+
"categorical_labels": "categoricalLabels",
|
|
298
|
+
"dataset_id": "datasetId",
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export function evaluatorResponseLlmFromJSON(
|
|
303
|
+
jsonString: string,
|
|
304
|
+
): SafeParseResult<EvaluatorResponseLlm, SDKValidationError> {
|
|
305
|
+
return safeParse(
|
|
306
|
+
jsonString,
|
|
307
|
+
(x) => EvaluatorResponseLlm$inboundSchema.parse(JSON.parse(x)),
|
|
308
|
+
`Failed to parse 'EvaluatorResponseLlm' from JSON`,
|
|
309
|
+
);
|
|
310
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 EvaluatorResponsePython = {
|
|
12
|
+
id: string;
|
|
13
|
+
description: string;
|
|
14
|
+
created: string;
|
|
15
|
+
updated: string;
|
|
16
|
+
updatedById?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the project owning this evaluator.
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
guardrailConfig?: any | undefined;
|
|
22
|
+
code: string;
|
|
23
|
+
type: "python_eval";
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
29
|
+
EvaluatorResponsePython,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
_id: z.string(),
|
|
34
|
+
description: z.string(),
|
|
35
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
36
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
37
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
|
+
project_id: z.string().optional(),
|
|
39
|
+
guardrail_config: z.any().optional(),
|
|
40
|
+
code: z.string(),
|
|
41
|
+
type: z.literal("python_eval"),
|
|
42
|
+
key: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"_id": "id",
|
|
46
|
+
"updated_by_id": "updatedById",
|
|
47
|
+
"project_id": "projectId",
|
|
48
|
+
"guardrail_config": "guardrailConfig",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function evaluatorResponsePythonFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<EvaluatorResponsePython, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => EvaluatorResponsePython$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'EvaluatorResponsePython' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const RagasMetric = {
|
|
13
|
+
ContextPrecision: "context_precision",
|
|
14
|
+
ContextRecall: "context_recall",
|
|
15
|
+
ContextEntitiesRecall: "context_entities_recall",
|
|
16
|
+
Harmfulness: "harmfulness",
|
|
17
|
+
Maliciousness: "maliciousness",
|
|
18
|
+
Coherence: "coherence",
|
|
19
|
+
Correctness: "correctness",
|
|
20
|
+
Conciseness: "conciseness",
|
|
21
|
+
ResponseRelevancy: "response_relevancy",
|
|
22
|
+
Faithfulness: "faithfulness",
|
|
23
|
+
Summarization: "summarization",
|
|
24
|
+
NoiseSensitivity: "noise_sensitivity",
|
|
25
|
+
} as const;
|
|
26
|
+
export type RagasMetric = ClosedEnum<typeof RagasMetric>;
|
|
27
|
+
|
|
28
|
+
export type EvaluatorResponseRagas = {
|
|
29
|
+
id: string;
|
|
30
|
+
description: string;
|
|
31
|
+
created: string;
|
|
32
|
+
updated: string;
|
|
33
|
+
updatedById?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier of the project owning this evaluator.
|
|
36
|
+
*/
|
|
37
|
+
projectId?: string | undefined;
|
|
38
|
+
guardrailConfig?: any | undefined;
|
|
39
|
+
type: "ragas";
|
|
40
|
+
ragasMetric: RagasMetric;
|
|
41
|
+
key: string;
|
|
42
|
+
model: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const RagasMetric$inboundSchema: z.ZodNativeEnum<typeof RagasMetric> = z
|
|
47
|
+
.nativeEnum(RagasMetric);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
51
|
+
EvaluatorResponseRagas,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
unknown
|
|
54
|
+
> = z.object({
|
|
55
|
+
_id: z.string(),
|
|
56
|
+
description: z.string(),
|
|
57
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
58
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
59
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
60
|
+
project_id: z.string().optional(),
|
|
61
|
+
guardrail_config: z.any().optional(),
|
|
62
|
+
type: z.literal("ragas"),
|
|
63
|
+
ragas_metric: RagasMetric$inboundSchema,
|
|
64
|
+
key: z.string(),
|
|
65
|
+
model: z.string(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
"_id": "id",
|
|
69
|
+
"updated_by_id": "updatedById",
|
|
70
|
+
"project_id": "projectId",
|
|
71
|
+
"guardrail_config": "guardrailConfig",
|
|
72
|
+
"ragas_metric": "ragasMetric",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function evaluatorResponseRagasFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<EvaluatorResponseRagas, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => EvaluatorResponseRagas$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'EvaluatorResponseRagas' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 EvaluatorResponseTypescript = {
|
|
12
|
+
id: string;
|
|
13
|
+
description: string;
|
|
14
|
+
created: string;
|
|
15
|
+
updated: string;
|
|
16
|
+
updatedById?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the project owning this evaluator.
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
guardrailConfig?: any | undefined;
|
|
22
|
+
code: string;
|
|
23
|
+
type: "typescript_eval";
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
29
|
+
EvaluatorResponseTypescript,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
_id: z.string(),
|
|
34
|
+
description: z.string(),
|
|
35
|
+
created: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
36
|
+
updated: z.string().default("2026-08-05T15:12:51.947Z"),
|
|
37
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
|
+
project_id: z.string().optional(),
|
|
39
|
+
guardrail_config: z.any().optional(),
|
|
40
|
+
code: z.string(),
|
|
41
|
+
type: z.literal("typescript_eval"),
|
|
42
|
+
key: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"_id": "id",
|
|
46
|
+
"updated_by_id": "updatedById",
|
|
47
|
+
"project_id": "projectId",
|
|
48
|
+
"guardrail_config": "guardrailConfig",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function evaluatorResponseTypescriptFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<EvaluatorResponseTypescript, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => EvaluatorResponseTypescript$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'EvaluatorResponseTypescript' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -147,7 +147,6 @@ export * from "./datasourcesservicepreviewchunksresponse.js";
|
|
|
147
147
|
export * from "./datasourcesserviceupdaterequest.js";
|
|
148
148
|
export * from "./deletealertresponse.js";
|
|
149
149
|
export * from "./deletebudgetresponse.js";
|
|
150
|
-
export * from "./deleteevaluatorresponse.js";
|
|
151
150
|
export * from "./deletefileresponse.js";
|
|
152
151
|
export * from "./deletefilesystemfileresponse.js";
|
|
153
152
|
export * from "./deletefilesystemresponse.js";
|
|
@@ -184,6 +183,13 @@ export * from "./errorstreamingevent.js";
|
|
|
184
183
|
export * from "./evaluationcontext.js";
|
|
185
184
|
export * from "./evaluationresult.js";
|
|
186
185
|
export * from "./evaluatorref.js";
|
|
186
|
+
export * from "./evaluatorresponsefunction.js";
|
|
187
|
+
export * from "./evaluatorresponsehttp.js";
|
|
188
|
+
export * from "./evaluatorresponsejsonschema.js";
|
|
189
|
+
export * from "./evaluatorresponsellm.js";
|
|
190
|
+
export * from "./evaluatorresponsepython.js";
|
|
191
|
+
export * from "./evaluatorresponseragas.js";
|
|
192
|
+
export * from "./evaluatorresponsetypescript.js";
|
|
187
193
|
export * from "./executionnamedstreamingevent.js";
|
|
188
194
|
export * from "./executionreviewedstreamingevent.js";
|
|
189
195
|
export * from "./executionreviewrequiredstreamingevent.js";
|
|
@@ -251,6 +257,7 @@ export * from "./imagecontentpartschema.js";
|
|
|
251
257
|
export * from "./incompletedetails.js";
|
|
252
258
|
export * from "./inputtokensdetails.js";
|
|
253
259
|
export * from "./internalretrievalconfig.js";
|
|
260
|
+
export * from "./invokedeploymentrequest.js";
|
|
254
261
|
export * from "./invokeevaluatorrequest.js";
|
|
255
262
|
export * from "./ipallowlist.js";
|
|
256
263
|
export * from "./iprange.js";
|
|
@@ -272,7 +279,6 @@ export * from "./listannotationqueuesresponse.js";
|
|
|
272
279
|
export * from "./listbudgetsresponse.js";
|
|
273
280
|
export * from "./listcapabilitiesresponse.js";
|
|
274
281
|
export * from "./listdomainsresponse.js";
|
|
275
|
-
export * from "./listevaluatorsresponse.js";
|
|
276
282
|
export * from "./listevaluatorversionsresponse.js";
|
|
277
283
|
export * from "./listfilesresponse.js";
|
|
278
284
|
export * from "./listfilesystemfilesresponse.js";
|