@orq-ai/node 4.17.24 → 4.17.25
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/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/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -3
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +30 -37
- package/packages/orq-rc/src/models/components/agenttaskconfig.ts +4 -41
- package/packages/orq-rc/src/models/components/cell.ts +22 -39
- package/packages/orq-rc/src/models/components/mcptoolexposure.ts +9 -0
- package/packages/orq-rc/src/models/components/metricsummary.ts +5 -2
- package/packages/orq-rc/src/models/components/patchevalcellrequest.ts +3 -19
- package/packages/orq-rc/src/models/components/patchreviewcellrequest.ts +3 -25
- package/packages/orq-rc/src/models/components/patchtaskcellrequest.ts +3 -23
- package/packages/orq-rc/src/models/components/prompttaskconfig.ts +26 -184
- package/packages/orq-rc/src/models/components/queryrow.ts +11 -6
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/run.ts +14 -8
- package/packages/orq-rc/src/models/components/updateruncellrequest.ts +3 -23
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -3
- 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/listagents.ts +0 -3
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3
- 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/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- 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/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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/updatetool.ts +4 -4
|
@@ -23,6 +23,10 @@ export type McpToolExposure = {
|
|
|
23
23
|
* `McpTool.id` values to expose when mode is SELECTED; a tool renamed upstream gets a new id on the next sync.
|
|
24
24
|
*/
|
|
25
25
|
toolIds?: Array<string> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* `McpTool.id` values deliberately left unexposed when mode is SELECTED; an active tool in neither list is new to this selection.
|
|
28
|
+
*/
|
|
29
|
+
excludedToolIds?: Array<string> | undefined;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -34,10 +38,12 @@ export const McpToolExposure$inboundSchema: z.ZodType<
|
|
|
34
38
|
mode: McpToolExposureMode$inboundSchema,
|
|
35
39
|
read_only: z.boolean().optional(),
|
|
36
40
|
tool_ids: z.array(z.string()).optional(),
|
|
41
|
+
excluded_tool_ids: z.array(z.string()).optional(),
|
|
37
42
|
}).transform((v) => {
|
|
38
43
|
return remap$(v, {
|
|
39
44
|
"read_only": "readOnly",
|
|
40
45
|
"tool_ids": "toolIds",
|
|
46
|
+
"excluded_tool_ids": "excludedToolIds",
|
|
41
47
|
});
|
|
42
48
|
});
|
|
43
49
|
/** @internal */
|
|
@@ -45,6 +51,7 @@ export type McpToolExposure$Outbound = {
|
|
|
45
51
|
mode: string;
|
|
46
52
|
read_only?: boolean | undefined;
|
|
47
53
|
tool_ids?: Array<string> | undefined;
|
|
54
|
+
excluded_tool_ids?: Array<string> | undefined;
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
/** @internal */
|
|
@@ -56,10 +63,12 @@ export const McpToolExposure$outboundSchema: z.ZodType<
|
|
|
56
63
|
mode: McpToolExposureMode$outboundSchema,
|
|
57
64
|
readOnly: z.boolean().optional(),
|
|
58
65
|
toolIds: z.array(z.string()).optional(),
|
|
66
|
+
excludedToolIds: z.array(z.string()).optional(),
|
|
59
67
|
}).transform((v) => {
|
|
60
68
|
return remap$(v, {
|
|
61
69
|
readOnly: "read_only",
|
|
62
70
|
toolIds: "tool_ids",
|
|
71
|
+
excludedToolIds: "excluded_tool_ids",
|
|
63
72
|
});
|
|
64
73
|
});
|
|
65
74
|
|
|
@@ -27,7 +27,10 @@ export type MetricSummary = {
|
|
|
27
27
|
number?: NumberMetricSummary | undefined;
|
|
28
28
|
boolean?: BooleanMetricSummary | undefined;
|
|
29
29
|
categorical?: CategoricalMetricSummary | undefined;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Null unless a baseline run was requested.
|
|
32
|
+
*/
|
|
33
|
+
baseline?: MetricBaseline | null | undefined;
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
/** @internal */
|
|
@@ -39,7 +42,7 @@ export const MetricSummary$inboundSchema: z.ZodType<
|
|
|
39
42
|
number: NumberMetricSummary$inboundSchema.optional(),
|
|
40
43
|
boolean: BooleanMetricSummary$inboundSchema.optional(),
|
|
41
44
|
categorical: CategoricalMetricSummary$inboundSchema.optional(),
|
|
42
|
-
baseline: MetricBaseline$inboundSchema.optional(),
|
|
45
|
+
baseline: z.nullable(MetricBaseline$inboundSchema).optional(),
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
export function metricSummaryFromJSON(
|
|
@@ -4,29 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type Value = {};
|
|
8
|
-
|
|
9
7
|
export type PatchEvalCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type Value$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const Value$outboundSchema: z.ZodType<
|
|
18
|
-
Value$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
Value
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function valueToJSON(value: Value): string {
|
|
24
|
-
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
11
|
/** @internal */
|
|
28
12
|
export type PatchEvalCellRequest$Outbound = {
|
|
29
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
30
14
|
};
|
|
31
15
|
|
|
32
16
|
/** @internal */
|
|
@@ -35,7 +19,7 @@ export const PatchEvalCellRequest$outboundSchema: z.ZodType<
|
|
|
35
19
|
z.ZodTypeDef,
|
|
36
20
|
PatchEvalCellRequest
|
|
37
21
|
> = z.object({
|
|
38
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
39
23
|
});
|
|
40
24
|
|
|
41
25
|
export function patchEvalCellRequestToJSON(
|
|
@@ -4,35 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type PatchReviewCellRequestValue = {};
|
|
8
|
-
|
|
9
7
|
export type PatchReviewCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type PatchReviewCellRequestValue$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const PatchReviewCellRequestValue$outboundSchema: z.ZodType<
|
|
18
|
-
PatchReviewCellRequestValue$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
PatchReviewCellRequestValue
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function patchReviewCellRequestValueToJSON(
|
|
24
|
-
patchReviewCellRequestValue: PatchReviewCellRequestValue,
|
|
25
|
-
): string {
|
|
26
|
-
return JSON.stringify(
|
|
27
|
-
PatchReviewCellRequestValue$outboundSchema.parse(
|
|
28
|
-
patchReviewCellRequestValue,
|
|
29
|
-
),
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
11
|
/** @internal */
|
|
34
12
|
export type PatchReviewCellRequest$Outbound = {
|
|
35
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
36
14
|
};
|
|
37
15
|
|
|
38
16
|
/** @internal */
|
|
@@ -41,7 +19,7 @@ export const PatchReviewCellRequest$outboundSchema: z.ZodType<
|
|
|
41
19
|
z.ZodTypeDef,
|
|
42
20
|
PatchReviewCellRequest
|
|
43
21
|
> = z.object({
|
|
44
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
45
23
|
});
|
|
46
24
|
|
|
47
25
|
export function patchReviewCellRequestToJSON(
|
|
@@ -10,36 +10,16 @@ import {
|
|
|
10
10
|
ArtifactRefs$outboundSchema,
|
|
11
11
|
} from "./artifactrefs.js";
|
|
12
12
|
|
|
13
|
-
export type PatchTaskCellRequestValue = {};
|
|
14
|
-
|
|
15
13
|
export type PatchTaskCellRequest = {
|
|
16
14
|
repeatIndex?: number | undefined;
|
|
17
|
-
value?:
|
|
15
|
+
value?: { [k: string]: any } | undefined;
|
|
18
16
|
artifacts?: ArtifactRefs | undefined;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export type PatchTaskCellRequestValue$Outbound = {};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const PatchTaskCellRequestValue$outboundSchema: z.ZodType<
|
|
26
|
-
PatchTaskCellRequestValue$Outbound,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
PatchTaskCellRequestValue
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
export function patchTaskCellRequestValueToJSON(
|
|
32
|
-
patchTaskCellRequestValue: PatchTaskCellRequestValue,
|
|
33
|
-
): string {
|
|
34
|
-
return JSON.stringify(
|
|
35
|
-
PatchTaskCellRequestValue$outboundSchema.parse(patchTaskCellRequestValue),
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
19
|
/** @internal */
|
|
40
20
|
export type PatchTaskCellRequest$Outbound = {
|
|
41
21
|
repeat_index?: number | undefined;
|
|
42
|
-
value?:
|
|
22
|
+
value?: { [k: string]: any } | undefined;
|
|
43
23
|
artifacts?: ArtifactRefs$Outbound | undefined;
|
|
44
24
|
};
|
|
45
25
|
|
|
@@ -50,7 +30,7 @@ export const PatchTaskCellRequest$outboundSchema: z.ZodType<
|
|
|
50
30
|
PatchTaskCellRequest
|
|
51
31
|
> = z.object({
|
|
52
32
|
repeatIndex: z.number().int().optional(),
|
|
53
|
-
value: z.
|
|
33
|
+
value: z.record(z.any()).optional(),
|
|
54
34
|
artifacts: ArtifactRefs$outboundSchema.optional(),
|
|
55
35
|
}).transform((v) => {
|
|
56
36
|
return remap$(v, {
|
|
@@ -13,191 +13,35 @@ import {
|
|
|
13
13
|
MessagesSource$outboundSchema,
|
|
14
14
|
} from "./messagessource.js";
|
|
15
15
|
|
|
16
|
-
export type PromptConfig = {};
|
|
17
|
-
|
|
18
|
-
export type Tools = {};
|
|
19
|
-
|
|
20
|
-
export type KnowledgeBases = {};
|
|
21
|
-
|
|
22
|
-
export type PromptTaskConfigMetadata = {};
|
|
23
|
-
|
|
24
|
-
export type EntityConfiguration = {};
|
|
25
|
-
|
|
26
16
|
export type PromptTaskConfig = {
|
|
27
|
-
promptConfig
|
|
17
|
+
promptConfig: { [k: string]: any };
|
|
28
18
|
messagesSource?: MessagesSource | undefined;
|
|
29
19
|
engine?: string | undefined;
|
|
30
|
-
tools?: Array<
|
|
31
|
-
knowledgeBases?: Array<
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
21
|
+
knowledgeBases?: Array<{ [k: string]: any }> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Null when the column was saved without metadata.
|
|
24
|
+
*/
|
|
25
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Null when the column was saved without an entity configuration.
|
|
28
|
+
*/
|
|
29
|
+
entityConfiguration?: { [k: string]: any } | null | undefined;
|
|
34
30
|
};
|
|
35
31
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const PromptConfig$inboundSchema: z.ZodType<
|
|
38
|
-
PromptConfig,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
unknown
|
|
41
|
-
> = z.object({});
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type PromptConfig$Outbound = {};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const PromptConfig$outboundSchema: z.ZodType<
|
|
47
|
-
PromptConfig$Outbound,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
PromptConfig
|
|
50
|
-
> = z.object({});
|
|
51
|
-
|
|
52
|
-
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
53
|
-
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
54
|
-
}
|
|
55
|
-
export function promptConfigFromJSON(
|
|
56
|
-
jsonString: string,
|
|
57
|
-
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
58
|
-
return safeParse(
|
|
59
|
-
jsonString,
|
|
60
|
-
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
-
`Failed to parse 'PromptConfig' from JSON`,
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
67
|
-
.object({});
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type Tools$Outbound = {};
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const Tools$outboundSchema: z.ZodType<
|
|
73
|
-
Tools$Outbound,
|
|
74
|
-
z.ZodTypeDef,
|
|
75
|
-
Tools
|
|
76
|
-
> = z.object({});
|
|
77
|
-
|
|
78
|
-
export function toolsToJSON(tools: Tools): string {
|
|
79
|
-
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
80
|
-
}
|
|
81
|
-
export function toolsFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<Tools, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'Tools' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
93
|
-
KnowledgeBases,
|
|
94
|
-
z.ZodTypeDef,
|
|
95
|
-
unknown
|
|
96
|
-
> = z.object({});
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type KnowledgeBases$Outbound = {};
|
|
99
|
-
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
102
|
-
KnowledgeBases$Outbound,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
KnowledgeBases
|
|
105
|
-
> = z.object({});
|
|
106
|
-
|
|
107
|
-
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
108
|
-
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
109
|
-
}
|
|
110
|
-
export function knowledgeBasesFromJSON(
|
|
111
|
-
jsonString: string,
|
|
112
|
-
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
113
|
-
return safeParse(
|
|
114
|
-
jsonString,
|
|
115
|
-
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
-
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const PromptTaskConfigMetadata$inboundSchema: z.ZodType<
|
|
122
|
-
PromptTaskConfigMetadata,
|
|
123
|
-
z.ZodTypeDef,
|
|
124
|
-
unknown
|
|
125
|
-
> = z.object({});
|
|
126
|
-
/** @internal */
|
|
127
|
-
export type PromptTaskConfigMetadata$Outbound = {};
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export const PromptTaskConfigMetadata$outboundSchema: z.ZodType<
|
|
131
|
-
PromptTaskConfigMetadata$Outbound,
|
|
132
|
-
z.ZodTypeDef,
|
|
133
|
-
PromptTaskConfigMetadata
|
|
134
|
-
> = z.object({});
|
|
135
|
-
|
|
136
|
-
export function promptTaskConfigMetadataToJSON(
|
|
137
|
-
promptTaskConfigMetadata: PromptTaskConfigMetadata,
|
|
138
|
-
): string {
|
|
139
|
-
return JSON.stringify(
|
|
140
|
-
PromptTaskConfigMetadata$outboundSchema.parse(promptTaskConfigMetadata),
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
export function promptTaskConfigMetadataFromJSON(
|
|
144
|
-
jsonString: string,
|
|
145
|
-
): SafeParseResult<PromptTaskConfigMetadata, SDKValidationError> {
|
|
146
|
-
return safeParse(
|
|
147
|
-
jsonString,
|
|
148
|
-
(x) => PromptTaskConfigMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
-
`Failed to parse 'PromptTaskConfigMetadata' from JSON`,
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/** @internal */
|
|
154
|
-
export const EntityConfiguration$inboundSchema: z.ZodType<
|
|
155
|
-
EntityConfiguration,
|
|
156
|
-
z.ZodTypeDef,
|
|
157
|
-
unknown
|
|
158
|
-
> = z.object({});
|
|
159
|
-
/** @internal */
|
|
160
|
-
export type EntityConfiguration$Outbound = {};
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export const EntityConfiguration$outboundSchema: z.ZodType<
|
|
164
|
-
EntityConfiguration$Outbound,
|
|
165
|
-
z.ZodTypeDef,
|
|
166
|
-
EntityConfiguration
|
|
167
|
-
> = z.object({});
|
|
168
|
-
|
|
169
|
-
export function entityConfigurationToJSON(
|
|
170
|
-
entityConfiguration: EntityConfiguration,
|
|
171
|
-
): string {
|
|
172
|
-
return JSON.stringify(
|
|
173
|
-
EntityConfiguration$outboundSchema.parse(entityConfiguration),
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
export function entityConfigurationFromJSON(
|
|
177
|
-
jsonString: string,
|
|
178
|
-
): SafeParseResult<EntityConfiguration, SDKValidationError> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) => EntityConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
-
`Failed to parse 'EntityConfiguration' from JSON`,
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
32
|
/** @internal */
|
|
187
33
|
export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
188
34
|
PromptTaskConfig,
|
|
189
35
|
z.ZodTypeDef,
|
|
190
36
|
unknown
|
|
191
37
|
> = z.object({
|
|
192
|
-
prompt_config: z.
|
|
38
|
+
prompt_config: z.record(z.any()),
|
|
193
39
|
messages_source: MessagesSource$inboundSchema.optional(),
|
|
194
40
|
engine: z.string().optional(),
|
|
195
|
-
tools: z.array(z.
|
|
196
|
-
knowledge_bases: z.array(z.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
entity_configuration: z.lazy(() => EntityConfiguration$inboundSchema)
|
|
200
|
-
.optional(),
|
|
41
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
42
|
+
knowledge_bases: z.array(z.record(z.any())).optional(),
|
|
43
|
+
metadata: z.nullable(z.record(z.any())).optional(),
|
|
44
|
+
entity_configuration: z.nullable(z.record(z.any())).optional(),
|
|
201
45
|
}).transform((v) => {
|
|
202
46
|
return remap$(v, {
|
|
203
47
|
"prompt_config": "promptConfig",
|
|
@@ -208,13 +52,13 @@ export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
|
208
52
|
});
|
|
209
53
|
/** @internal */
|
|
210
54
|
export type PromptTaskConfig$Outbound = {
|
|
211
|
-
prompt_config
|
|
55
|
+
prompt_config: { [k: string]: any };
|
|
212
56
|
messages_source?: string | undefined;
|
|
213
57
|
engine?: string | undefined;
|
|
214
|
-
tools?: Array<
|
|
215
|
-
knowledge_bases?: Array<
|
|
216
|
-
metadata?:
|
|
217
|
-
entity_configuration?:
|
|
58
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
59
|
+
knowledge_bases?: Array<{ [k: string]: any }> | undefined;
|
|
60
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
61
|
+
entity_configuration?: { [k: string]: any } | null | undefined;
|
|
218
62
|
};
|
|
219
63
|
|
|
220
64
|
/** @internal */
|
|
@@ -223,15 +67,13 @@ export const PromptTaskConfig$outboundSchema: z.ZodType<
|
|
|
223
67
|
z.ZodTypeDef,
|
|
224
68
|
PromptTaskConfig
|
|
225
69
|
> = z.object({
|
|
226
|
-
promptConfig: z.
|
|
70
|
+
promptConfig: z.record(z.any()),
|
|
227
71
|
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
228
72
|
engine: z.string().optional(),
|
|
229
|
-
tools: z.array(z.
|
|
230
|
-
knowledgeBases: z.array(z.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
entityConfiguration: z.lazy(() => EntityConfiguration$outboundSchema)
|
|
234
|
-
.optional(),
|
|
73
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
74
|
+
knowledgeBases: z.array(z.record(z.any())).optional(),
|
|
75
|
+
metadata: z.nullable(z.record(z.any())).optional(),
|
|
76
|
+
entityConfiguration: z.nullable(z.record(z.any())).optional(),
|
|
235
77
|
}).transform((v) => {
|
|
236
78
|
return remap$(v, {
|
|
237
79
|
promptConfig: "prompt_config",
|
|
@@ -15,8 +15,11 @@ export type QueryRow = {
|
|
|
15
15
|
displayName?: string | undefined;
|
|
16
16
|
cells?: Array<Cell> | undefined;
|
|
17
17
|
status?: RowStatus | undefined;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Null on rows written before timestamps were recorded.
|
|
20
|
+
*/
|
|
21
|
+
createdAt?: Date | null | undefined;
|
|
22
|
+
updatedAt?: Date | null | undefined;
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
/** @internal */
|
|
@@ -29,10 +32,12 @@ export const QueryRow$inboundSchema: z.ZodType<
|
|
|
29
32
|
display_name: z.string().optional(),
|
|
30
33
|
cells: z.array(Cell$inboundSchema).optional(),
|
|
31
34
|
status: RowStatus$inboundSchema.optional(),
|
|
32
|
-
created_at: z.
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
created_at: z.nullable(
|
|
36
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
37
|
+
).optional(),
|
|
38
|
+
updated_at: z.nullable(
|
|
39
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
|
+
).optional(),
|
|
36
41
|
}).transform((v) => {
|
|
37
42
|
return remap$(v, {
|
|
38
43
|
"row_id": "rowId",
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m6h8y78fvn5vjrnvc6zjqkq1"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -26,9 +26,15 @@ export type Run = {
|
|
|
26
26
|
rowCount?: number | undefined;
|
|
27
27
|
cellStatusCounts?: CellStatusCounts | undefined;
|
|
28
28
|
columns?: Array<Column> | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Null on runs created without settings, such as evaluatorq uploads.
|
|
31
|
+
*/
|
|
32
|
+
settings?: RunSettings | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Null until the run is executed.
|
|
35
|
+
*/
|
|
36
|
+
startedAt?: Date | null | undefined;
|
|
37
|
+
completedAt?: Date | null | undefined;
|
|
32
38
|
createdAt?: Date | undefined;
|
|
33
39
|
updatedAt?: Date | undefined;
|
|
34
40
|
/**
|
|
@@ -54,12 +60,12 @@ export const Run$inboundSchema: z.ZodType<Run, z.ZodTypeDef, unknown> = z
|
|
|
54
60
|
row_count: z.number().int().optional(),
|
|
55
61
|
cell_status_counts: CellStatusCounts$inboundSchema.optional(),
|
|
56
62
|
columns: z.array(Column$inboundSchema).optional(),
|
|
57
|
-
settings: RunSettings$inboundSchema.optional(),
|
|
58
|
-
started_at: z.
|
|
59
|
-
new Date(v)
|
|
63
|
+
settings: z.nullable(RunSettings$inboundSchema).optional(),
|
|
64
|
+
started_at: z.nullable(
|
|
65
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
60
66
|
).optional(),
|
|
61
|
-
completed_at: z.
|
|
62
|
-
new Date(v)
|
|
67
|
+
completed_at: z.nullable(
|
|
68
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
63
69
|
).optional(),
|
|
64
70
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
65
71
|
new Date(v)
|
|
@@ -4,33 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type UpdateRunCellRequestValue = {};
|
|
8
|
-
|
|
9
7
|
export type UpdateRunCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type UpdateRunCellRequestValue$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const UpdateRunCellRequestValue$outboundSchema: z.ZodType<
|
|
18
|
-
UpdateRunCellRequestValue$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
UpdateRunCellRequestValue
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function updateRunCellRequestValueToJSON(
|
|
24
|
-
updateRunCellRequestValue: UpdateRunCellRequestValue,
|
|
25
|
-
): string {
|
|
26
|
-
return JSON.stringify(
|
|
27
|
-
UpdateRunCellRequestValue$outboundSchema.parse(updateRunCellRequestValue),
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
11
|
/** @internal */
|
|
32
12
|
export type UpdateRunCellRequest$Outbound = {
|
|
33
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
34
14
|
};
|
|
35
15
|
|
|
36
16
|
/** @internal */
|
|
@@ -39,7 +19,7 @@ export const UpdateRunCellRequest$outboundSchema: z.ZodType<
|
|
|
39
19
|
z.ZodTypeDef,
|
|
40
20
|
UpdateRunCellRequest
|
|
41
21
|
> = z.object({
|
|
42
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
43
23
|
});
|
|
44
24
|
|
|
45
25
|
export function updateRunCellRequestToJSON(
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M6H8Y7BBT414VHSNGWYJQSFA"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M6H8Y7BBWESFVVH127HDHKSW"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M6H8Y7BBC7D8TM5C1K6BZ7HH"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M6H8Y7BA0QWSMMY703CTKB72"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M6H8Y7B8DQ6E5495A1K90JB2"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M6H8Y7B7MAZ717W24DGJQE2G"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M6H8Y7B79QPSMMJ05CVCXG1Z"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M6H8Y7B66C51HJKB5BP2HB9G"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -2531,7 +2531,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
2531
2531
|
z.ZodTypeDef,
|
|
2532
2532
|
unknown
|
|
2533
2533
|
> = z.object({
|
|
2534
|
-
id: z.string().default("
|
|
2534
|
+
id: z.string().default("01M6H8Y77PH40KDW76M6HP5Q1W"),
|
|
2535
2535
|
knowledge_id: z.string(),
|
|
2536
2536
|
configuration: z.union([
|
|
2537
2537
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|