@orq-ai/node 4.11.0-rc.27 → 4.11.0-rc.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +2 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +7 -5
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/annotationsCreate.d.ts +1 -1
- package/funcs/annotationsCreate.js +1 -1
- package/funcs/annotationsDelete.d.ts +1 -1
- package/funcs/annotationsDelete.js +1 -1
- package/funcs/budgetsList.js +1 -0
- package/funcs/budgetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +2 -1
- package/funcs/promptsCreate.js.map +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 +336 -0
- package/models/components/agentresponserequest.d.ts.map +1 -0
- package/models/components/agentresponserequest.js +210 -0
- package/models/components/agentresponserequest.js.map +1 -0
- 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/azurefoundrydeployment.d.ts +3 -0
- package/models/components/azurefoundrydeployment.d.ts.map +1 -1
- package/models/components/azurefoundrydeployment.js +4 -0
- package/models/components/azurefoundrydeployment.js.map +1 -1
- package/models/components/budgetsortfield.d.ts +12 -0
- package/models/components/budgetsortfield.d.ts.map +1 -0
- package/models/components/budgetsortfield.js +49 -0
- package/models/components/budgetsortfield.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1573 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1137 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +7 -7
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/operations/budgetlist.d.ts +5 -0
- package/models/operations/budgetlist.d.ts.map +1 -1
- package/models/operations/budgetlist.js +2 -0
- package/models/operations/budgetlist.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +2 -329
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -166
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +48 -10
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +37 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +210 -12
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +136 -9
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +3 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +7 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -5
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +19 -2
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.js +20 -2
- package/models/operations/deleteannotation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +440 -440
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +484 -479
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +0 -1560
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -1126
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +73 -72
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/invokeagent.d.ts +51 -48
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +43 -46
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +210 -12
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +138 -9
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +33 -12
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +9 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +210 -12
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +140 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamagent.d.ts +9 -6
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +6 -6
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.d.ts +210 -12
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +138 -9
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +9 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +7 -6
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js.map +1 -1
- package/sdk/annotations.d.ts +2 -2
- package/sdk/annotations.js +2 -2
- package/sdk/deployments.d.ts +2 -1
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js.map +1 -1
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/orqresponses.d.ts +1 -1
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +2 -2
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/prompts.d.ts +1 -1
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +2 -2
- package/src/funcs/agentsResponsesCreate.ts +8 -5
- package/src/funcs/agentsStream.ts +2 -2
- package/src/funcs/annotationsCreate.ts +1 -1
- package/src/funcs/annotationsDelete.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/funcs/promptsCreate.ts +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +565 -0
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/azurefoundrydeployment.ts +7 -0
- package/src/models/components/budgetsortfield.ts +19 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/src/models/operations/budgetlist.ts +7 -0
- package/src/models/operations/createagentresponserequest.ts +4 -550
- package/src/models/operations/createannotation.ts +110 -16
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +335 -19
- package/src/models/operations/createdatasource.ts +4 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +13 -8
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +46 -3
- package/src/models/operations/deploymentgetconfig.ts +1156 -1606
- package/src/models/operations/deploymentinvoke.ts +222 -3675
- package/src/models/operations/deploymentstream.ts +244 -285
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/invokeagent.ts +90 -116
- package/src/models/operations/listdatasetdatapoints.ts +378 -19
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +42 -18
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +363 -19
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamagent.ts +16 -11
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +366 -19
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +17 -11
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/annotations.ts +2 -2
- package/src/sdk/deployments.ts +2 -1
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/orqresponses.ts +2 -2
- package/src/sdk/prompts.ts +1 -1
|
@@ -6,27 +6,49 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For text/correction, provide a string.
|
|
9
|
+
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type AnnotationsValue = string | number | boolean | Array<string>;
|
|
12
12
|
|
|
13
|
-
export type
|
|
13
|
+
export type Annotations2 = {
|
|
14
|
+
/**
|
|
15
|
+
* The eval id of the evaluator annotation being corrected.
|
|
16
|
+
*/
|
|
17
|
+
parentAnnotationId: string;
|
|
18
|
+
/**
|
|
19
|
+
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
20
|
+
*/
|
|
21
|
+
value: string | number | boolean | Array<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional explanation for the correction.
|
|
24
|
+
*/
|
|
25
|
+
explanation?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
30
|
+
*/
|
|
31
|
+
export type Value = string | number | boolean | Array<string>;
|
|
32
|
+
|
|
33
|
+
export type Annotations1 = {
|
|
14
34
|
/**
|
|
15
35
|
* Unique key of the review.
|
|
16
36
|
*/
|
|
17
37
|
key: string;
|
|
18
38
|
/**
|
|
19
|
-
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For text/correction, provide a string.
|
|
39
|
+
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
20
40
|
*/
|
|
21
|
-
value: string | number | Array<string>;
|
|
41
|
+
value: string | number | boolean | Array<string>;
|
|
22
42
|
};
|
|
23
43
|
|
|
44
|
+
export type Annotations = Annotations1 | Annotations2;
|
|
45
|
+
|
|
24
46
|
export type CreateAnnotationMetadata = {
|
|
25
47
|
identityId?: string | undefined;
|
|
26
48
|
};
|
|
27
49
|
|
|
28
50
|
export type CreateAnnotationRequestBody = {
|
|
29
|
-
annotations: Array<
|
|
51
|
+
annotations: Array<Annotations1 | Annotations2>;
|
|
30
52
|
metadata?: CreateAnnotationMetadata | undefined;
|
|
31
53
|
};
|
|
32
54
|
|
|
@@ -43,35 +65,102 @@ export type CreateAnnotationRequest = {
|
|
|
43
65
|
};
|
|
44
66
|
|
|
45
67
|
/** @internal */
|
|
46
|
-
export type
|
|
68
|
+
export type AnnotationsValue$Outbound =
|
|
69
|
+
| string
|
|
70
|
+
| number
|
|
71
|
+
| boolean
|
|
72
|
+
| Array<string>;
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const AnnotationsValue$outboundSchema: z.ZodType<
|
|
76
|
+
AnnotationsValue$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
AnnotationsValue
|
|
79
|
+
> = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
|
|
80
|
+
|
|
81
|
+
export function annotationsValueToJSON(
|
|
82
|
+
annotationsValue: AnnotationsValue,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
AnnotationsValue$outboundSchema.parse(annotationsValue),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export type Annotations2$Outbound = {
|
|
91
|
+
parent_annotation_id: string;
|
|
92
|
+
value: string | number | boolean | Array<string>;
|
|
93
|
+
explanation?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const Annotations2$outboundSchema: z.ZodType<
|
|
98
|
+
Annotations2$Outbound,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
Annotations2
|
|
101
|
+
> = z.object({
|
|
102
|
+
parentAnnotationId: z.string(),
|
|
103
|
+
value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
104
|
+
explanation: z.string().optional(),
|
|
105
|
+
}).transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
parentAnnotationId: "parent_annotation_id",
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function annotations2ToJSON(annotations2: Annotations2): string {
|
|
112
|
+
return JSON.stringify(Annotations2$outboundSchema.parse(annotations2));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type Value$Outbound = string | number | boolean | Array<string>;
|
|
47
117
|
|
|
48
118
|
/** @internal */
|
|
49
119
|
export const Value$outboundSchema: z.ZodType<
|
|
50
120
|
Value$Outbound,
|
|
51
121
|
z.ZodTypeDef,
|
|
52
122
|
Value
|
|
53
|
-
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
123
|
+
> = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
|
|
54
124
|
|
|
55
125
|
export function valueToJSON(value: Value): string {
|
|
56
126
|
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
57
127
|
}
|
|
58
128
|
|
|
59
129
|
/** @internal */
|
|
60
|
-
export type
|
|
130
|
+
export type Annotations1$Outbound = {
|
|
61
131
|
key: string;
|
|
62
|
-
value: string | number | Array<string>;
|
|
132
|
+
value: string | number | boolean | Array<string>;
|
|
63
133
|
};
|
|
64
134
|
|
|
65
135
|
/** @internal */
|
|
66
|
-
export const
|
|
67
|
-
|
|
136
|
+
export const Annotations1$outboundSchema: z.ZodType<
|
|
137
|
+
Annotations1$Outbound,
|
|
68
138
|
z.ZodTypeDef,
|
|
69
|
-
|
|
139
|
+
Annotations1
|
|
70
140
|
> = z.object({
|
|
71
141
|
key: z.string(),
|
|
72
|
-
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
142
|
+
value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
73
143
|
});
|
|
74
144
|
|
|
145
|
+
export function annotations1ToJSON(annotations1: Annotations1): string {
|
|
146
|
+
return JSON.stringify(Annotations1$outboundSchema.parse(annotations1));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type Annotations$Outbound =
|
|
151
|
+
| Annotations1$Outbound
|
|
152
|
+
| Annotations2$Outbound;
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const Annotations$outboundSchema: z.ZodType<
|
|
156
|
+
Annotations$Outbound,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
Annotations
|
|
159
|
+
> = z.union([
|
|
160
|
+
z.lazy(() => Annotations1$outboundSchema),
|
|
161
|
+
z.lazy(() => Annotations2$outboundSchema),
|
|
162
|
+
]);
|
|
163
|
+
|
|
75
164
|
export function annotationsToJSON(annotations: Annotations): string {
|
|
76
165
|
return JSON.stringify(Annotations$outboundSchema.parse(annotations));
|
|
77
166
|
}
|
|
@@ -104,7 +193,7 @@ export function createAnnotationMetadataToJSON(
|
|
|
104
193
|
|
|
105
194
|
/** @internal */
|
|
106
195
|
export type CreateAnnotationRequestBody$Outbound = {
|
|
107
|
-
annotations: Array<
|
|
196
|
+
annotations: Array<Annotations1$Outbound | Annotations2$Outbound>;
|
|
108
197
|
metadata?: CreateAnnotationMetadata$Outbound | undefined;
|
|
109
198
|
};
|
|
110
199
|
|
|
@@ -114,7 +203,12 @@ export const CreateAnnotationRequestBody$outboundSchema: z.ZodType<
|
|
|
114
203
|
z.ZodTypeDef,
|
|
115
204
|
CreateAnnotationRequestBody
|
|
116
205
|
> = z.object({
|
|
117
|
-
annotations: z.array(
|
|
206
|
+
annotations: z.array(
|
|
207
|
+
z.union([
|
|
208
|
+
z.lazy(() => Annotations1$outboundSchema),
|
|
209
|
+
z.lazy(() => Annotations2$outboundSchema),
|
|
210
|
+
]),
|
|
211
|
+
),
|
|
118
212
|
metadata: z.lazy(() => CreateAnnotationMetadata$outboundSchema).optional(),
|
|
119
213
|
});
|
|
120
214
|
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-17T11:59:16.603Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -767,6 +767,52 @@ export type CreateDatasetItemEvaluationsDatasetsSource = ClosedEnum<
|
|
|
767
767
|
typeof CreateDatasetItemEvaluationsDatasetsSource
|
|
768
768
|
>;
|
|
769
769
|
|
|
770
|
+
/**
|
|
771
|
+
* The kind of annotator that produced the evaluation
|
|
772
|
+
*/
|
|
773
|
+
export const CreateDatasetItemEvaluationsDatasetsKind = {
|
|
774
|
+
Llm: "llm",
|
|
775
|
+
Code: "code",
|
|
776
|
+
Human: "human",
|
|
777
|
+
Automation: "automation",
|
|
778
|
+
} as const;
|
|
779
|
+
/**
|
|
780
|
+
* The kind of annotator that produced the evaluation
|
|
781
|
+
*/
|
|
782
|
+
export type CreateDatasetItemEvaluationsDatasetsKind = ClosedEnum<
|
|
783
|
+
typeof CreateDatasetItemEvaluationsDatasetsKind
|
|
784
|
+
>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
788
|
+
*/
|
|
789
|
+
export type CreateDatasetItemEvaluationsAnnotator = {
|
|
790
|
+
/**
|
|
791
|
+
* The kind of annotator that produced the evaluation
|
|
792
|
+
*/
|
|
793
|
+
kind: CreateDatasetItemEvaluationsDatasetsKind;
|
|
794
|
+
/**
|
|
795
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
796
|
+
*/
|
|
797
|
+
actorId: string;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
802
|
+
*/
|
|
803
|
+
export const CreateDatasetItemEvaluationsOutputSchema = {
|
|
804
|
+
Boolean: "boolean",
|
|
805
|
+
Number: "number",
|
|
806
|
+
Categorical: "categorical",
|
|
807
|
+
String: "string",
|
|
808
|
+
} as const;
|
|
809
|
+
/**
|
|
810
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
811
|
+
*/
|
|
812
|
+
export type CreateDatasetItemEvaluationsOutputSchema = ClosedEnum<
|
|
813
|
+
typeof CreateDatasetItemEvaluationsOutputSchema
|
|
814
|
+
>;
|
|
815
|
+
|
|
770
816
|
export type Evaluations3 = {
|
|
771
817
|
/**
|
|
772
818
|
* The unique identifier of the human evaluation
|
|
@@ -777,16 +823,36 @@ export type Evaluations3 = {
|
|
|
777
823
|
*/
|
|
778
824
|
evaluationType: CreateDatasetItemEvaluationsEvaluationType;
|
|
779
825
|
/**
|
|
780
|
-
* The unique identifier of the human review
|
|
826
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
781
827
|
*/
|
|
782
|
-
humanReviewId
|
|
828
|
+
humanReviewId?: string | undefined;
|
|
783
829
|
source: CreateDatasetItemEvaluationsDatasetsSource;
|
|
784
830
|
/**
|
|
785
|
-
* The
|
|
831
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
832
|
+
*/
|
|
833
|
+
annotator?: CreateDatasetItemEvaluationsAnnotator | undefined;
|
|
834
|
+
/**
|
|
835
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
836
|
+
*/
|
|
837
|
+
outputSchema?: CreateDatasetItemEvaluationsOutputSchema | undefined;
|
|
838
|
+
/**
|
|
839
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
840
|
+
*/
|
|
841
|
+
parentAnnotationId?: string | undefined;
|
|
842
|
+
/**
|
|
843
|
+
* Optional free-text explanation of the value
|
|
844
|
+
*/
|
|
845
|
+
explanation?: string | undefined;
|
|
846
|
+
/**
|
|
847
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
848
|
+
*
|
|
849
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
786
850
|
*/
|
|
787
851
|
reviewedById: string;
|
|
788
852
|
/**
|
|
789
|
-
* The date and time the item was reviewed
|
|
853
|
+
* Deprecated. The date and time the item was reviewed
|
|
854
|
+
*
|
|
855
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
790
856
|
*/
|
|
791
857
|
reviewedAt: Date;
|
|
792
858
|
type: "string_array";
|
|
@@ -814,6 +880,52 @@ export type CreateDatasetItemEvaluationsSource = ClosedEnum<
|
|
|
814
880
|
typeof CreateDatasetItemEvaluationsSource
|
|
815
881
|
>;
|
|
816
882
|
|
|
883
|
+
/**
|
|
884
|
+
* The kind of annotator that produced the evaluation
|
|
885
|
+
*/
|
|
886
|
+
export const CreateDatasetItemEvaluationsKind = {
|
|
887
|
+
Llm: "llm",
|
|
888
|
+
Code: "code",
|
|
889
|
+
Human: "human",
|
|
890
|
+
Automation: "automation",
|
|
891
|
+
} as const;
|
|
892
|
+
/**
|
|
893
|
+
* The kind of annotator that produced the evaluation
|
|
894
|
+
*/
|
|
895
|
+
export type CreateDatasetItemEvaluationsKind = ClosedEnum<
|
|
896
|
+
typeof CreateDatasetItemEvaluationsKind
|
|
897
|
+
>;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
901
|
+
*/
|
|
902
|
+
export type EvaluationsAnnotator = {
|
|
903
|
+
/**
|
|
904
|
+
* The kind of annotator that produced the evaluation
|
|
905
|
+
*/
|
|
906
|
+
kind: CreateDatasetItemEvaluationsKind;
|
|
907
|
+
/**
|
|
908
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
909
|
+
*/
|
|
910
|
+
actorId: string;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
915
|
+
*/
|
|
916
|
+
export const EvaluationsOutputSchema = {
|
|
917
|
+
Boolean: "boolean",
|
|
918
|
+
Number: "number",
|
|
919
|
+
Categorical: "categorical",
|
|
920
|
+
String: "string",
|
|
921
|
+
} as const;
|
|
922
|
+
/**
|
|
923
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
924
|
+
*/
|
|
925
|
+
export type EvaluationsOutputSchema = ClosedEnum<
|
|
926
|
+
typeof EvaluationsOutputSchema
|
|
927
|
+
>;
|
|
928
|
+
|
|
817
929
|
export type Evaluations2 = {
|
|
818
930
|
/**
|
|
819
931
|
* The unique identifier of the human evaluation
|
|
@@ -824,16 +936,36 @@ export type Evaluations2 = {
|
|
|
824
936
|
*/
|
|
825
937
|
evaluationType: EvaluationsEvaluationType;
|
|
826
938
|
/**
|
|
827
|
-
* The unique identifier of the human review
|
|
939
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
828
940
|
*/
|
|
829
|
-
humanReviewId
|
|
941
|
+
humanReviewId?: string | undefined;
|
|
830
942
|
source: CreateDatasetItemEvaluationsSource;
|
|
831
943
|
/**
|
|
832
|
-
* The
|
|
944
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
945
|
+
*/
|
|
946
|
+
annotator?: EvaluationsAnnotator | undefined;
|
|
947
|
+
/**
|
|
948
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
949
|
+
*/
|
|
950
|
+
outputSchema?: EvaluationsOutputSchema | undefined;
|
|
951
|
+
/**
|
|
952
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
953
|
+
*/
|
|
954
|
+
parentAnnotationId?: string | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* Optional free-text explanation of the value
|
|
957
|
+
*/
|
|
958
|
+
explanation?: string | undefined;
|
|
959
|
+
/**
|
|
960
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
961
|
+
*
|
|
962
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
833
963
|
*/
|
|
834
964
|
reviewedById: string;
|
|
835
965
|
/**
|
|
836
|
-
* The date and time the item was reviewed
|
|
966
|
+
* Deprecated. The date and time the item was reviewed
|
|
967
|
+
*
|
|
968
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
837
969
|
*/
|
|
838
970
|
reviewedAt: Date;
|
|
839
971
|
type: "number";
|
|
@@ -859,6 +991,48 @@ export const EvaluationsSource = {
|
|
|
859
991
|
} as const;
|
|
860
992
|
export type EvaluationsSource = ClosedEnum<typeof EvaluationsSource>;
|
|
861
993
|
|
|
994
|
+
/**
|
|
995
|
+
* The kind of annotator that produced the evaluation
|
|
996
|
+
*/
|
|
997
|
+
export const EvaluationsKind = {
|
|
998
|
+
Llm: "llm",
|
|
999
|
+
Code: "code",
|
|
1000
|
+
Human: "human",
|
|
1001
|
+
Automation: "automation",
|
|
1002
|
+
} as const;
|
|
1003
|
+
/**
|
|
1004
|
+
* The kind of annotator that produced the evaluation
|
|
1005
|
+
*/
|
|
1006
|
+
export type EvaluationsKind = ClosedEnum<typeof EvaluationsKind>;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
1010
|
+
*/
|
|
1011
|
+
export type Annotator = {
|
|
1012
|
+
/**
|
|
1013
|
+
* The kind of annotator that produced the evaluation
|
|
1014
|
+
*/
|
|
1015
|
+
kind: EvaluationsKind;
|
|
1016
|
+
/**
|
|
1017
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
1018
|
+
*/
|
|
1019
|
+
actorId: string;
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1024
|
+
*/
|
|
1025
|
+
export const OutputSchema = {
|
|
1026
|
+
Boolean: "boolean",
|
|
1027
|
+
Number: "number",
|
|
1028
|
+
Categorical: "categorical",
|
|
1029
|
+
String: "string",
|
|
1030
|
+
} as const;
|
|
1031
|
+
/**
|
|
1032
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1033
|
+
*/
|
|
1034
|
+
export type OutputSchema = ClosedEnum<typeof OutputSchema>;
|
|
1035
|
+
|
|
862
1036
|
export type Evaluations1 = {
|
|
863
1037
|
/**
|
|
864
1038
|
* The unique identifier of the human evaluation
|
|
@@ -869,16 +1043,36 @@ export type Evaluations1 = {
|
|
|
869
1043
|
*/
|
|
870
1044
|
evaluationType: CreateDatasetItemEvaluationsDatasetsEvaluationType;
|
|
871
1045
|
/**
|
|
872
|
-
* The unique identifier of the human review
|
|
1046
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
873
1047
|
*/
|
|
874
|
-
humanReviewId
|
|
1048
|
+
humanReviewId?: string | undefined;
|
|
875
1049
|
source: EvaluationsSource;
|
|
876
1050
|
/**
|
|
877
|
-
* The
|
|
1051
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
1052
|
+
*/
|
|
1053
|
+
annotator?: Annotator | undefined;
|
|
1054
|
+
/**
|
|
1055
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
1056
|
+
*/
|
|
1057
|
+
outputSchema?: OutputSchema | undefined;
|
|
1058
|
+
/**
|
|
1059
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
1060
|
+
*/
|
|
1061
|
+
parentAnnotationId?: string | undefined;
|
|
1062
|
+
/**
|
|
1063
|
+
* Optional free-text explanation of the value
|
|
1064
|
+
*/
|
|
1065
|
+
explanation?: string | undefined;
|
|
1066
|
+
/**
|
|
1067
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
1068
|
+
*
|
|
1069
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
878
1070
|
*/
|
|
879
1071
|
reviewedById: string;
|
|
880
1072
|
/**
|
|
881
|
-
* The date and time the item was reviewed
|
|
1073
|
+
* Deprecated. The date and time the item was reviewed
|
|
1074
|
+
*
|
|
1075
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
882
1076
|
*/
|
|
883
1077
|
reviewedAt: Date;
|
|
884
1078
|
type: "string";
|
|
@@ -2358,6 +2552,41 @@ export const CreateDatasetItemEvaluationsDatasetsSource$inboundSchema:
|
|
|
2358
2552
|
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsSource> = z
|
|
2359
2553
|
.nativeEnum(CreateDatasetItemEvaluationsDatasetsSource);
|
|
2360
2554
|
|
|
2555
|
+
/** @internal */
|
|
2556
|
+
export const CreateDatasetItemEvaluationsDatasetsKind$inboundSchema:
|
|
2557
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsKind> = z
|
|
2558
|
+
.nativeEnum(CreateDatasetItemEvaluationsDatasetsKind);
|
|
2559
|
+
|
|
2560
|
+
/** @internal */
|
|
2561
|
+
export const CreateDatasetItemEvaluationsAnnotator$inboundSchema: z.ZodType<
|
|
2562
|
+
CreateDatasetItemEvaluationsAnnotator,
|
|
2563
|
+
z.ZodTypeDef,
|
|
2564
|
+
unknown
|
|
2565
|
+
> = z.object({
|
|
2566
|
+
kind: CreateDatasetItemEvaluationsDatasetsKind$inboundSchema,
|
|
2567
|
+
actor_id: z.string(),
|
|
2568
|
+
}).transform((v) => {
|
|
2569
|
+
return remap$(v, {
|
|
2570
|
+
"actor_id": "actorId",
|
|
2571
|
+
});
|
|
2572
|
+
});
|
|
2573
|
+
|
|
2574
|
+
export function createDatasetItemEvaluationsAnnotatorFromJSON(
|
|
2575
|
+
jsonString: string,
|
|
2576
|
+
): SafeParseResult<CreateDatasetItemEvaluationsAnnotator, SDKValidationError> {
|
|
2577
|
+
return safeParse(
|
|
2578
|
+
jsonString,
|
|
2579
|
+
(x) =>
|
|
2580
|
+
CreateDatasetItemEvaluationsAnnotator$inboundSchema.parse(JSON.parse(x)),
|
|
2581
|
+
`Failed to parse 'CreateDatasetItemEvaluationsAnnotator' from JSON`,
|
|
2582
|
+
);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/** @internal */
|
|
2586
|
+
export const CreateDatasetItemEvaluationsOutputSchema$inboundSchema:
|
|
2587
|
+
z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsOutputSchema> = z
|
|
2588
|
+
.nativeEnum(CreateDatasetItemEvaluationsOutputSchema);
|
|
2589
|
+
|
|
2361
2590
|
/** @internal */
|
|
2362
2591
|
export const Evaluations3$inboundSchema: z.ZodType<
|
|
2363
2592
|
Evaluations3,
|
|
@@ -2366,13 +2595,19 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2366
2595
|
> = z.object({
|
|
2367
2596
|
id: z.string(),
|
|
2368
2597
|
evaluation_type: CreateDatasetItemEvaluationsEvaluationType$inboundSchema,
|
|
2369
|
-
human_review_id: z.string(),
|
|
2598
|
+
human_review_id: z.string().optional(),
|
|
2370
2599
|
source: CreateDatasetItemEvaluationsDatasetsSource$inboundSchema.default(
|
|
2371
2600
|
"orq",
|
|
2372
2601
|
),
|
|
2602
|
+
annotator: z.lazy(() => CreateDatasetItemEvaluationsAnnotator$inboundSchema)
|
|
2603
|
+
.optional(),
|
|
2604
|
+
output_schema: CreateDatasetItemEvaluationsOutputSchema$inboundSchema
|
|
2605
|
+
.optional(),
|
|
2606
|
+
parent_annotation_id: z.string().optional(),
|
|
2607
|
+
explanation: z.string().optional(),
|
|
2373
2608
|
reviewed_by_id: z.string(),
|
|
2374
2609
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2375
|
-
"2026-06-
|
|
2610
|
+
"2026-06-17T11:59:36.977Z",
|
|
2376
2611
|
).transform(v => new Date(v)),
|
|
2377
2612
|
type: z.literal("string_array"),
|
|
2378
2613
|
values: z.array(z.string()),
|
|
@@ -2380,6 +2615,8 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2380
2615
|
return remap$(v, {
|
|
2381
2616
|
"evaluation_type": "evaluationType",
|
|
2382
2617
|
"human_review_id": "humanReviewId",
|
|
2618
|
+
"output_schema": "outputSchema",
|
|
2619
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2383
2620
|
"reviewed_by_id": "reviewedById",
|
|
2384
2621
|
"reviewed_at": "reviewedAt",
|
|
2385
2622
|
});
|
|
@@ -2405,6 +2642,40 @@ export const CreateDatasetItemEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
|
2405
2642
|
typeof CreateDatasetItemEvaluationsSource
|
|
2406
2643
|
> = z.nativeEnum(CreateDatasetItemEvaluationsSource);
|
|
2407
2644
|
|
|
2645
|
+
/** @internal */
|
|
2646
|
+
export const CreateDatasetItemEvaluationsKind$inboundSchema: z.ZodNativeEnum<
|
|
2647
|
+
typeof CreateDatasetItemEvaluationsKind
|
|
2648
|
+
> = z.nativeEnum(CreateDatasetItemEvaluationsKind);
|
|
2649
|
+
|
|
2650
|
+
/** @internal */
|
|
2651
|
+
export const EvaluationsAnnotator$inboundSchema: z.ZodType<
|
|
2652
|
+
EvaluationsAnnotator,
|
|
2653
|
+
z.ZodTypeDef,
|
|
2654
|
+
unknown
|
|
2655
|
+
> = z.object({
|
|
2656
|
+
kind: CreateDatasetItemEvaluationsKind$inboundSchema,
|
|
2657
|
+
actor_id: z.string(),
|
|
2658
|
+
}).transform((v) => {
|
|
2659
|
+
return remap$(v, {
|
|
2660
|
+
"actor_id": "actorId",
|
|
2661
|
+
});
|
|
2662
|
+
});
|
|
2663
|
+
|
|
2664
|
+
export function evaluationsAnnotatorFromJSON(
|
|
2665
|
+
jsonString: string,
|
|
2666
|
+
): SafeParseResult<EvaluationsAnnotator, SDKValidationError> {
|
|
2667
|
+
return safeParse(
|
|
2668
|
+
jsonString,
|
|
2669
|
+
(x) => EvaluationsAnnotator$inboundSchema.parse(JSON.parse(x)),
|
|
2670
|
+
`Failed to parse 'EvaluationsAnnotator' from JSON`,
|
|
2671
|
+
);
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
/** @internal */
|
|
2675
|
+
export const EvaluationsOutputSchema$inboundSchema: z.ZodNativeEnum<
|
|
2676
|
+
typeof EvaluationsOutputSchema
|
|
2677
|
+
> = z.nativeEnum(EvaluationsOutputSchema);
|
|
2678
|
+
|
|
2408
2679
|
/** @internal */
|
|
2409
2680
|
export const Evaluations2$inboundSchema: z.ZodType<
|
|
2410
2681
|
Evaluations2,
|
|
@@ -2413,11 +2684,15 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2413
2684
|
> = z.object({
|
|
2414
2685
|
id: z.string(),
|
|
2415
2686
|
evaluation_type: EvaluationsEvaluationType$inboundSchema,
|
|
2416
|
-
human_review_id: z.string(),
|
|
2687
|
+
human_review_id: z.string().optional(),
|
|
2417
2688
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2689
|
+
annotator: z.lazy(() => EvaluationsAnnotator$inboundSchema).optional(),
|
|
2690
|
+
output_schema: EvaluationsOutputSchema$inboundSchema.optional(),
|
|
2691
|
+
parent_annotation_id: z.string().optional(),
|
|
2692
|
+
explanation: z.string().optional(),
|
|
2418
2693
|
reviewed_by_id: z.string(),
|
|
2419
2694
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2420
|
-
"2026-06-
|
|
2695
|
+
"2026-06-17T11:59:36.976Z",
|
|
2421
2696
|
).transform(v => new Date(v)),
|
|
2422
2697
|
type: z.literal("number"),
|
|
2423
2698
|
value: z.number(),
|
|
@@ -2425,6 +2700,8 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2425
2700
|
return remap$(v, {
|
|
2426
2701
|
"evaluation_type": "evaluationType",
|
|
2427
2702
|
"human_review_id": "humanReviewId",
|
|
2703
|
+
"output_schema": "outputSchema",
|
|
2704
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2428
2705
|
"reviewed_by_id": "reviewedById",
|
|
2429
2706
|
"reviewed_at": "reviewedAt",
|
|
2430
2707
|
});
|
|
@@ -2450,6 +2727,39 @@ export const EvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
|
2450
2727
|
typeof EvaluationsSource
|
|
2451
2728
|
> = z.nativeEnum(EvaluationsSource);
|
|
2452
2729
|
|
|
2730
|
+
/** @internal */
|
|
2731
|
+
export const EvaluationsKind$inboundSchema: z.ZodNativeEnum<
|
|
2732
|
+
typeof EvaluationsKind
|
|
2733
|
+
> = z.nativeEnum(EvaluationsKind);
|
|
2734
|
+
|
|
2735
|
+
/** @internal */
|
|
2736
|
+
export const Annotator$inboundSchema: z.ZodType<
|
|
2737
|
+
Annotator,
|
|
2738
|
+
z.ZodTypeDef,
|
|
2739
|
+
unknown
|
|
2740
|
+
> = z.object({
|
|
2741
|
+
kind: EvaluationsKind$inboundSchema,
|
|
2742
|
+
actor_id: z.string(),
|
|
2743
|
+
}).transform((v) => {
|
|
2744
|
+
return remap$(v, {
|
|
2745
|
+
"actor_id": "actorId",
|
|
2746
|
+
});
|
|
2747
|
+
});
|
|
2748
|
+
|
|
2749
|
+
export function annotatorFromJSON(
|
|
2750
|
+
jsonString: string,
|
|
2751
|
+
): SafeParseResult<Annotator, SDKValidationError> {
|
|
2752
|
+
return safeParse(
|
|
2753
|
+
jsonString,
|
|
2754
|
+
(x) => Annotator$inboundSchema.parse(JSON.parse(x)),
|
|
2755
|
+
`Failed to parse 'Annotator' from JSON`,
|
|
2756
|
+
);
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
/** @internal */
|
|
2760
|
+
export const OutputSchema$inboundSchema: z.ZodNativeEnum<typeof OutputSchema> =
|
|
2761
|
+
z.nativeEnum(OutputSchema);
|
|
2762
|
+
|
|
2453
2763
|
/** @internal */
|
|
2454
2764
|
export const Evaluations1$inboundSchema: z.ZodType<
|
|
2455
2765
|
Evaluations1,
|
|
@@ -2459,11 +2769,15 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2459
2769
|
id: z.string(),
|
|
2460
2770
|
evaluation_type:
|
|
2461
2771
|
CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
2462
|
-
human_review_id: z.string(),
|
|
2772
|
+
human_review_id: z.string().optional(),
|
|
2463
2773
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2774
|
+
annotator: z.lazy(() => Annotator$inboundSchema).optional(),
|
|
2775
|
+
output_schema: OutputSchema$inboundSchema.optional(),
|
|
2776
|
+
parent_annotation_id: z.string().optional(),
|
|
2777
|
+
explanation: z.string().optional(),
|
|
2464
2778
|
reviewed_by_id: z.string(),
|
|
2465
2779
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2466
|
-
"2026-06-
|
|
2780
|
+
"2026-06-17T11:59:36.975Z",
|
|
2467
2781
|
).transform(v => new Date(v)),
|
|
2468
2782
|
type: z.literal("string"),
|
|
2469
2783
|
value: z.string(),
|
|
@@ -2471,6 +2785,8 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2471
2785
|
return remap$(v, {
|
|
2472
2786
|
"evaluation_type": "evaluationType",
|
|
2473
2787
|
"human_review_id": "humanReviewId",
|
|
2788
|
+
"output_schema": "outputSchema",
|
|
2789
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2474
2790
|
"reviewed_by_id": "reviewedById",
|
|
2475
2791
|
"reviewed_at": "reviewedAt",
|
|
2476
2792
|
});
|
|
@@ -2546,7 +2862,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2546
2862
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2547
2863
|
.optional(),
|
|
2548
2864
|
updated: z.string().datetime({ offset: true }).default(
|
|
2549
|
-
"2026-06-
|
|
2865
|
+
"2026-06-17T11:59:16.603Z",
|
|
2550
2866
|
).transform(v => new Date(v)),
|
|
2551
2867
|
}).transform((v) => {
|
|
2552
2868
|
return remap$(v, {
|