@orq-ai/node 3.12.13 → 3.12.16
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/README.md +2 -5
- package/bin/mcp-server.js +114 -113
- package/bin/mcp-server.js.map +33 -33
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +91 -96
- package/packages/orq-rc/docs/sdks/agents/README.md +102 -82
- package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/url.ts +1 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +167 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +2 -9
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +14 -16
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/runagent.ts +207 -31
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +219 -32
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +181 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/sdk/agents.ts +2 -20
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
- package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
- package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
|
@@ -51,6 +51,15 @@ export type UpdateEvalRequestBodyEvalsRequest4GuardrailConfig =
|
|
|
51
51
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber
|
|
52
52
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean;
|
|
53
53
|
|
|
54
|
+
export const UpdateEvalRequestBodyEvalsRequest4OutputType = {
|
|
55
|
+
Boolean: "boolean",
|
|
56
|
+
Number: "number",
|
|
57
|
+
String: "string",
|
|
58
|
+
} as const;
|
|
59
|
+
export type UpdateEvalRequestBodyEvalsRequest4OutputType = ClosedEnum<
|
|
60
|
+
typeof UpdateEvalRequestBodyEvalsRequest4OutputType
|
|
61
|
+
>;
|
|
62
|
+
|
|
54
63
|
export const UpdateEvalRequestBodyEvalsRequest4Type = {
|
|
55
64
|
PythonEval: "python_eval",
|
|
56
65
|
} as const;
|
|
@@ -63,6 +72,7 @@ export type RequestBodyPython = {
|
|
|
63
72
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber
|
|
64
73
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean
|
|
65
74
|
| undefined;
|
|
75
|
+
outputType?: UpdateEvalRequestBodyEvalsRequest4OutputType | undefined;
|
|
66
76
|
code?: string | undefined;
|
|
67
77
|
type: UpdateEvalRequestBodyEvalsRequest4Type;
|
|
68
78
|
/**
|
|
@@ -116,6 +126,15 @@ export type UpdateEvalRequestBodyEvalsRequestGuardrailConfig =
|
|
|
116
126
|
| UpdateEvalGuardrailConfigEvalsRequestNumber
|
|
117
127
|
| UpdateEvalGuardrailConfigEvalsRequestBoolean;
|
|
118
128
|
|
|
129
|
+
export const UpdateEvalRequestBodyEvalsRequestOutputType = {
|
|
130
|
+
Boolean: "boolean",
|
|
131
|
+
Number: "number",
|
|
132
|
+
String: "string",
|
|
133
|
+
} as const;
|
|
134
|
+
export type UpdateEvalRequestBodyEvalsRequestOutputType = ClosedEnum<
|
|
135
|
+
typeof UpdateEvalRequestBodyEvalsRequestOutputType
|
|
136
|
+
>;
|
|
137
|
+
|
|
119
138
|
export const UpdateEvalRequestBodyEvalsRequestType = {
|
|
120
139
|
HttpEval: "http_eval",
|
|
121
140
|
} as const;
|
|
@@ -136,6 +155,7 @@ export type UpdateEvalRequestBodyHTTP = {
|
|
|
136
155
|
| UpdateEvalGuardrailConfigEvalsRequestNumber
|
|
137
156
|
| UpdateEvalGuardrailConfigEvalsRequestBoolean
|
|
138
157
|
| undefined;
|
|
158
|
+
outputType?: UpdateEvalRequestBodyEvalsRequestOutputType | undefined;
|
|
139
159
|
type: UpdateEvalRequestBodyEvalsRequestType;
|
|
140
160
|
url?: string | undefined;
|
|
141
161
|
method?: UpdateEvalRequestBodyMethod | undefined;
|
|
@@ -192,6 +212,13 @@ export type UpdateEvalRequestBodyEvalsGuardrailConfig =
|
|
|
192
212
|
| UpdateEvalGuardrailConfigEvalsNumber
|
|
193
213
|
| UpdateEvalGuardrailConfigEvalsBoolean;
|
|
194
214
|
|
|
215
|
+
export const UpdateEvalRequestBodyEvalsOutputType = {
|
|
216
|
+
Boolean: "boolean",
|
|
217
|
+
} as const;
|
|
218
|
+
export type UpdateEvalRequestBodyEvalsOutputType = ClosedEnum<
|
|
219
|
+
typeof UpdateEvalRequestBodyEvalsOutputType
|
|
220
|
+
>;
|
|
221
|
+
|
|
195
222
|
export const UpdateEvalRequestBodyEvalsType = {
|
|
196
223
|
JsonSchema: "json_schema",
|
|
197
224
|
} as const;
|
|
@@ -204,6 +231,7 @@ export type RequestBodyJSON = {
|
|
|
204
231
|
| UpdateEvalGuardrailConfigEvalsNumber
|
|
205
232
|
| UpdateEvalGuardrailConfigEvalsBoolean
|
|
206
233
|
| undefined;
|
|
234
|
+
outputType?: UpdateEvalRequestBodyEvalsOutputType | undefined;
|
|
207
235
|
type: UpdateEvalRequestBodyEvalsType;
|
|
208
236
|
schema?: string | undefined;
|
|
209
237
|
/**
|
|
@@ -257,6 +285,15 @@ export type UpdateEvalRequestBodyGuardrailConfig =
|
|
|
257
285
|
| UpdateEvalGuardrailConfigNumber
|
|
258
286
|
| UpdateEvalGuardrailConfigBoolean;
|
|
259
287
|
|
|
288
|
+
export const UpdateEvalRequestBodyOutputType = {
|
|
289
|
+
Boolean: "boolean",
|
|
290
|
+
Number: "number",
|
|
291
|
+
String: "string",
|
|
292
|
+
} as const;
|
|
293
|
+
export type UpdateEvalRequestBodyOutputType = ClosedEnum<
|
|
294
|
+
typeof UpdateEvalRequestBodyOutputType
|
|
295
|
+
>;
|
|
296
|
+
|
|
260
297
|
export const UpdateEvalRequestBodyType = {
|
|
261
298
|
LlmEval: "llm_eval",
|
|
262
299
|
} as const;
|
|
@@ -269,6 +306,7 @@ export type RequestBodyLLM = {
|
|
|
269
306
|
| UpdateEvalGuardrailConfigNumber
|
|
270
307
|
| UpdateEvalGuardrailConfigBoolean
|
|
271
308
|
| undefined;
|
|
309
|
+
outputType?: UpdateEvalRequestBodyOutputType | undefined;
|
|
272
310
|
type: UpdateEvalRequestBodyType;
|
|
273
311
|
prompt?: string | undefined;
|
|
274
312
|
/**
|
|
@@ -1703,6 +1741,29 @@ export function updateEvalRequestBodyEvalsRequest4GuardrailConfigFromJSON(
|
|
|
1703
1741
|
);
|
|
1704
1742
|
}
|
|
1705
1743
|
|
|
1744
|
+
/** @internal */
|
|
1745
|
+
export const UpdateEvalRequestBodyEvalsRequest4OutputType$inboundSchema:
|
|
1746
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequest4OutputType> = z
|
|
1747
|
+
.nativeEnum(UpdateEvalRequestBodyEvalsRequest4OutputType);
|
|
1748
|
+
|
|
1749
|
+
/** @internal */
|
|
1750
|
+
export const UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema:
|
|
1751
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequest4OutputType> =
|
|
1752
|
+
UpdateEvalRequestBodyEvalsRequest4OutputType$inboundSchema;
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* @internal
|
|
1756
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1757
|
+
*/
|
|
1758
|
+
export namespace UpdateEvalRequestBodyEvalsRequest4OutputType$ {
|
|
1759
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4OutputType$inboundSchema` instead. */
|
|
1760
|
+
export const inboundSchema =
|
|
1761
|
+
UpdateEvalRequestBodyEvalsRequest4OutputType$inboundSchema;
|
|
1762
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema` instead. */
|
|
1763
|
+
export const outboundSchema =
|
|
1764
|
+
UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1706
1767
|
/** @internal */
|
|
1707
1768
|
export const UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema:
|
|
1708
1769
|
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequest4Type> = z.nativeEnum(
|
|
@@ -1741,6 +1802,8 @@ export const RequestBodyPython$inboundSchema: z.ZodType<
|
|
|
1741
1802
|
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema
|
|
1742
1803
|
),
|
|
1743
1804
|
]).optional(),
|
|
1805
|
+
output_type: UpdateEvalRequestBodyEvalsRequest4OutputType$inboundSchema
|
|
1806
|
+
.optional(),
|
|
1744
1807
|
code: z.string().optional(),
|
|
1745
1808
|
type: UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema,
|
|
1746
1809
|
path: z.string(),
|
|
@@ -1749,6 +1812,7 @@ export const RequestBodyPython$inboundSchema: z.ZodType<
|
|
|
1749
1812
|
}).transform((v) => {
|
|
1750
1813
|
return remap$(v, {
|
|
1751
1814
|
"guardrail_config": "guardrailConfig",
|
|
1815
|
+
"output_type": "outputType",
|
|
1752
1816
|
});
|
|
1753
1817
|
});
|
|
1754
1818
|
|
|
@@ -1758,6 +1822,7 @@ export type RequestBodyPython$Outbound = {
|
|
|
1758
1822
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound
|
|
1759
1823
|
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound
|
|
1760
1824
|
| undefined;
|
|
1825
|
+
output_type?: string | undefined;
|
|
1761
1826
|
code?: string | undefined;
|
|
1762
1827
|
type: string;
|
|
1763
1828
|
path: string;
|
|
@@ -1779,6 +1844,8 @@ export const RequestBodyPython$outboundSchema: z.ZodType<
|
|
|
1779
1844
|
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
|
|
1780
1845
|
),
|
|
1781
1846
|
]).optional(),
|
|
1847
|
+
outputType: UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema
|
|
1848
|
+
.optional(),
|
|
1782
1849
|
code: z.string().optional(),
|
|
1783
1850
|
type: UpdateEvalRequestBodyEvalsRequest4Type$outboundSchema,
|
|
1784
1851
|
path: z.string(),
|
|
@@ -1787,6 +1854,7 @@ export const RequestBodyPython$outboundSchema: z.ZodType<
|
|
|
1787
1854
|
}).transform((v) => {
|
|
1788
1855
|
return remap$(v, {
|
|
1789
1856
|
guardrailConfig: "guardrail_config",
|
|
1857
|
+
outputType: "output_type",
|
|
1790
1858
|
});
|
|
1791
1859
|
});
|
|
1792
1860
|
|
|
@@ -2113,6 +2181,29 @@ export function updateEvalRequestBodyEvalsRequestGuardrailConfigFromJSON(
|
|
|
2113
2181
|
);
|
|
2114
2182
|
}
|
|
2115
2183
|
|
|
2184
|
+
/** @internal */
|
|
2185
|
+
export const UpdateEvalRequestBodyEvalsRequestOutputType$inboundSchema:
|
|
2186
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequestOutputType> = z
|
|
2187
|
+
.nativeEnum(UpdateEvalRequestBodyEvalsRequestOutputType);
|
|
2188
|
+
|
|
2189
|
+
/** @internal */
|
|
2190
|
+
export const UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema:
|
|
2191
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequestOutputType> =
|
|
2192
|
+
UpdateEvalRequestBodyEvalsRequestOutputType$inboundSchema;
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* @internal
|
|
2196
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2197
|
+
*/
|
|
2198
|
+
export namespace UpdateEvalRequestBodyEvalsRequestOutputType$ {
|
|
2199
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestOutputType$inboundSchema` instead. */
|
|
2200
|
+
export const inboundSchema =
|
|
2201
|
+
UpdateEvalRequestBodyEvalsRequestOutputType$inboundSchema;
|
|
2202
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema` instead. */
|
|
2203
|
+
export const outboundSchema =
|
|
2204
|
+
UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2116
2207
|
/** @internal */
|
|
2117
2208
|
export const UpdateEvalRequestBodyEvalsRequestType$inboundSchema:
|
|
2118
2209
|
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequestType> = z.nativeEnum(
|
|
@@ -2168,6 +2259,8 @@ export const UpdateEvalRequestBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2168
2259
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema),
|
|
2169
2260
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema),
|
|
2170
2261
|
]).optional(),
|
|
2262
|
+
output_type: UpdateEvalRequestBodyEvalsRequestOutputType$inboundSchema
|
|
2263
|
+
.optional(),
|
|
2171
2264
|
type: UpdateEvalRequestBodyEvalsRequestType$inboundSchema,
|
|
2172
2265
|
url: z.string().optional(),
|
|
2173
2266
|
method: UpdateEvalRequestBodyMethod$inboundSchema.optional(),
|
|
@@ -2179,6 +2272,7 @@ export const UpdateEvalRequestBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2179
2272
|
}).transform((v) => {
|
|
2180
2273
|
return remap$(v, {
|
|
2181
2274
|
"guardrail_config": "guardrailConfig",
|
|
2275
|
+
"output_type": "outputType",
|
|
2182
2276
|
});
|
|
2183
2277
|
});
|
|
2184
2278
|
|
|
@@ -2188,6 +2282,7 @@ export type UpdateEvalRequestBodyHTTP$Outbound = {
|
|
|
2188
2282
|
| UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound
|
|
2189
2283
|
| UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
2190
2284
|
| undefined;
|
|
2285
|
+
output_type?: string | undefined;
|
|
2191
2286
|
type: string;
|
|
2192
2287
|
url?: string | undefined;
|
|
2193
2288
|
method?: string | undefined;
|
|
@@ -2208,6 +2303,8 @@ export const UpdateEvalRequestBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2208
2303
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
|
|
2209
2304
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
|
|
2210
2305
|
]).optional(),
|
|
2306
|
+
outputType: UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema
|
|
2307
|
+
.optional(),
|
|
2211
2308
|
type: UpdateEvalRequestBodyEvalsRequestType$outboundSchema,
|
|
2212
2309
|
url: z.string().optional(),
|
|
2213
2310
|
method: UpdateEvalRequestBodyMethod$outboundSchema.optional(),
|
|
@@ -2219,6 +2316,7 @@ export const UpdateEvalRequestBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2219
2316
|
}).transform((v) => {
|
|
2220
2317
|
return remap$(v, {
|
|
2221
2318
|
guardrailConfig: "guardrail_config",
|
|
2319
|
+
outputType: "output_type",
|
|
2222
2320
|
});
|
|
2223
2321
|
});
|
|
2224
2322
|
|
|
@@ -2524,6 +2622,30 @@ export function updateEvalRequestBodyEvalsGuardrailConfigFromJSON(
|
|
|
2524
2622
|
);
|
|
2525
2623
|
}
|
|
2526
2624
|
|
|
2625
|
+
/** @internal */
|
|
2626
|
+
export const UpdateEvalRequestBodyEvalsOutputType$inboundSchema:
|
|
2627
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsOutputType> = z.nativeEnum(
|
|
2628
|
+
UpdateEvalRequestBodyEvalsOutputType,
|
|
2629
|
+
);
|
|
2630
|
+
|
|
2631
|
+
/** @internal */
|
|
2632
|
+
export const UpdateEvalRequestBodyEvalsOutputType$outboundSchema:
|
|
2633
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsOutputType> =
|
|
2634
|
+
UpdateEvalRequestBodyEvalsOutputType$inboundSchema;
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* @internal
|
|
2638
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2639
|
+
*/
|
|
2640
|
+
export namespace UpdateEvalRequestBodyEvalsOutputType$ {
|
|
2641
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsOutputType$inboundSchema` instead. */
|
|
2642
|
+
export const inboundSchema =
|
|
2643
|
+
UpdateEvalRequestBodyEvalsOutputType$inboundSchema;
|
|
2644
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsOutputType$outboundSchema` instead. */
|
|
2645
|
+
export const outboundSchema =
|
|
2646
|
+
UpdateEvalRequestBodyEvalsOutputType$outboundSchema;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2527
2649
|
/** @internal */
|
|
2528
2650
|
export const UpdateEvalRequestBodyEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
2529
2651
|
typeof UpdateEvalRequestBodyEvalsType
|
|
@@ -2555,6 +2677,7 @@ export const RequestBodyJSON$inboundSchema: z.ZodType<
|
|
|
2555
2677
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$inboundSchema),
|
|
2556
2678
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
2557
2679
|
]).optional(),
|
|
2680
|
+
output_type: UpdateEvalRequestBodyEvalsOutputType$inboundSchema.optional(),
|
|
2558
2681
|
type: UpdateEvalRequestBodyEvalsType$inboundSchema,
|
|
2559
2682
|
schema: z.string().optional(),
|
|
2560
2683
|
path: z.string(),
|
|
@@ -2563,6 +2686,7 @@ export const RequestBodyJSON$inboundSchema: z.ZodType<
|
|
|
2563
2686
|
}).transform((v) => {
|
|
2564
2687
|
return remap$(v, {
|
|
2565
2688
|
"guardrail_config": "guardrailConfig",
|
|
2689
|
+
"output_type": "outputType",
|
|
2566
2690
|
});
|
|
2567
2691
|
});
|
|
2568
2692
|
|
|
@@ -2572,6 +2696,7 @@ export type RequestBodyJSON$Outbound = {
|
|
|
2572
2696
|
| UpdateEvalGuardrailConfigEvalsNumber$Outbound
|
|
2573
2697
|
| UpdateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
2574
2698
|
| undefined;
|
|
2699
|
+
output_type?: string | undefined;
|
|
2575
2700
|
type: string;
|
|
2576
2701
|
schema?: string | undefined;
|
|
2577
2702
|
path: string;
|
|
@@ -2589,6 +2714,7 @@ export const RequestBodyJSON$outboundSchema: z.ZodType<
|
|
|
2589
2714
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
2590
2715
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
2591
2716
|
]).optional(),
|
|
2717
|
+
outputType: UpdateEvalRequestBodyEvalsOutputType$outboundSchema.optional(),
|
|
2592
2718
|
type: UpdateEvalRequestBodyEvalsType$outboundSchema,
|
|
2593
2719
|
schema: z.string().optional(),
|
|
2594
2720
|
path: z.string(),
|
|
@@ -2597,6 +2723,7 @@ export const RequestBodyJSON$outboundSchema: z.ZodType<
|
|
|
2597
2723
|
}).transform((v) => {
|
|
2598
2724
|
return remap$(v, {
|
|
2599
2725
|
guardrailConfig: "guardrail_config",
|
|
2726
|
+
outputType: "output_type",
|
|
2600
2727
|
});
|
|
2601
2728
|
});
|
|
2602
2729
|
|
|
@@ -2882,6 +3009,27 @@ export function updateEvalRequestBodyGuardrailConfigFromJSON(
|
|
|
2882
3009
|
);
|
|
2883
3010
|
}
|
|
2884
3011
|
|
|
3012
|
+
/** @internal */
|
|
3013
|
+
export const UpdateEvalRequestBodyOutputType$inboundSchema: z.ZodNativeEnum<
|
|
3014
|
+
typeof UpdateEvalRequestBodyOutputType
|
|
3015
|
+
> = z.nativeEnum(UpdateEvalRequestBodyOutputType);
|
|
3016
|
+
|
|
3017
|
+
/** @internal */
|
|
3018
|
+
export const UpdateEvalRequestBodyOutputType$outboundSchema: z.ZodNativeEnum<
|
|
3019
|
+
typeof UpdateEvalRequestBodyOutputType
|
|
3020
|
+
> = UpdateEvalRequestBodyOutputType$inboundSchema;
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* @internal
|
|
3024
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3025
|
+
*/
|
|
3026
|
+
export namespace UpdateEvalRequestBodyOutputType$ {
|
|
3027
|
+
/** @deprecated use `UpdateEvalRequestBodyOutputType$inboundSchema` instead. */
|
|
3028
|
+
export const inboundSchema = UpdateEvalRequestBodyOutputType$inboundSchema;
|
|
3029
|
+
/** @deprecated use `UpdateEvalRequestBodyOutputType$outboundSchema` instead. */
|
|
3030
|
+
export const outboundSchema = UpdateEvalRequestBodyOutputType$outboundSchema;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
2885
3033
|
/** @internal */
|
|
2886
3034
|
export const UpdateEvalRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
2887
3035
|
typeof UpdateEvalRequestBodyType
|
|
@@ -2913,6 +3061,7 @@ export const RequestBodyLLM$inboundSchema: z.ZodType<
|
|
|
2913
3061
|
z.lazy(() => UpdateEvalGuardrailConfigNumber$inboundSchema),
|
|
2914
3062
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
2915
3063
|
]).optional(),
|
|
3064
|
+
output_type: UpdateEvalRequestBodyOutputType$inboundSchema.optional(),
|
|
2916
3065
|
type: UpdateEvalRequestBodyType$inboundSchema,
|
|
2917
3066
|
prompt: z.string().optional(),
|
|
2918
3067
|
path: z.string(),
|
|
@@ -2922,6 +3071,7 @@ export const RequestBodyLLM$inboundSchema: z.ZodType<
|
|
|
2922
3071
|
}).transform((v) => {
|
|
2923
3072
|
return remap$(v, {
|
|
2924
3073
|
"guardrail_config": "guardrailConfig",
|
|
3074
|
+
"output_type": "outputType",
|
|
2925
3075
|
});
|
|
2926
3076
|
});
|
|
2927
3077
|
|
|
@@ -2931,6 +3081,7 @@ export type RequestBodyLLM$Outbound = {
|
|
|
2931
3081
|
| UpdateEvalGuardrailConfigNumber$Outbound
|
|
2932
3082
|
| UpdateEvalGuardrailConfigBoolean$Outbound
|
|
2933
3083
|
| undefined;
|
|
3084
|
+
output_type?: string | undefined;
|
|
2934
3085
|
type: string;
|
|
2935
3086
|
prompt?: string | undefined;
|
|
2936
3087
|
path: string;
|
|
@@ -2949,6 +3100,7 @@ export const RequestBodyLLM$outboundSchema: z.ZodType<
|
|
|
2949
3100
|
z.lazy(() => UpdateEvalGuardrailConfigNumber$outboundSchema),
|
|
2950
3101
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$outboundSchema),
|
|
2951
3102
|
]).optional(),
|
|
3103
|
+
outputType: UpdateEvalRequestBodyOutputType$outboundSchema.optional(),
|
|
2952
3104
|
type: UpdateEvalRequestBodyType$outboundSchema,
|
|
2953
3105
|
prompt: z.string().optional(),
|
|
2954
3106
|
path: z.string(),
|
|
@@ -2958,6 +3110,7 @@ export const RequestBodyLLM$outboundSchema: z.ZodType<
|
|
|
2958
3110
|
}).transform((v) => {
|
|
2959
3111
|
return remap$(v, {
|
|
2960
3112
|
guardrailConfig: "guardrail_config",
|
|
3113
|
+
outputType: "output_type",
|
|
2961
3114
|
});
|
|
2962
3115
|
});
|
|
2963
3116
|
|
|
@@ -3484,8 +3637,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
3484
3637
|
> = z.object({
|
|
3485
3638
|
_id: z.string(),
|
|
3486
3639
|
description: z.string(),
|
|
3487
|
-
created: z.string().default("2025-09-
|
|
3488
|
-
updated: z.string().default("2025-09-
|
|
3640
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
3641
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
3489
3642
|
guardrail_config: z.union([
|
|
3490
3643
|
z.lazy(() =>
|
|
3491
3644
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3528,8 +3681,8 @@ export const ResponseBodyTypescript$outboundSchema: z.ZodType<
|
|
|
3528
3681
|
> = z.object({
|
|
3529
3682
|
id: z.string(),
|
|
3530
3683
|
description: z.string(),
|
|
3531
|
-
created: z.string().default("2025-09-
|
|
3532
|
-
updated: z.string().default("2025-09-
|
|
3684
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
3685
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
3533
3686
|
guardrailConfig: z.union([
|
|
3534
3687
|
z.lazy(() =>
|
|
3535
3688
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3955,8 +4108,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
3955
4108
|
> = z.object({
|
|
3956
4109
|
_id: z.string(),
|
|
3957
4110
|
description: z.string(),
|
|
3958
|
-
created: z.string().default("2025-09-
|
|
3959
|
-
updated: z.string().default("2025-09-
|
|
4111
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
4112
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
3960
4113
|
guardrail_config: z.union([
|
|
3961
4114
|
z.lazy(() =>
|
|
3962
4115
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -4002,8 +4155,8 @@ export const ResponseBodyRagas$outboundSchema: z.ZodType<
|
|
|
4002
4155
|
> = z.object({
|
|
4003
4156
|
id: z.string(),
|
|
4004
4157
|
description: z.string(),
|
|
4005
|
-
created: z.string().default("2025-09-
|
|
4006
|
-
updated: z.string().default("2025-09-
|
|
4158
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
4159
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
4007
4160
|
guardrailConfig: z.union([
|
|
4008
4161
|
z.lazy(() =>
|
|
4009
4162
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -7510,8 +7663,8 @@ export const UpdateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7510
7663
|
> = z.object({
|
|
7511
7664
|
_id: z.string(),
|
|
7512
7665
|
description: z.string(),
|
|
7513
|
-
created: z.string().default("2025-09-
|
|
7514
|
-
updated: z.string().default("2025-09-
|
|
7666
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
7667
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
7515
7668
|
guardrail_config: z.union([
|
|
7516
7669
|
z.lazy(() =>
|
|
7517
7670
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7625,8 +7778,8 @@ export const UpdateEvalResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7625
7778
|
> = z.object({
|
|
7626
7779
|
id: z.string(),
|
|
7627
7780
|
description: z.string(),
|
|
7628
|
-
created: z.string().default("2025-09-
|
|
7629
|
-
updated: z.string().default("2025-09-
|
|
7781
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
7782
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
7630
7783
|
guardrailConfig: z.union([
|
|
7631
7784
|
z.lazy(() =>
|
|
7632
7785
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -8068,8 +8221,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
8068
8221
|
> = z.object({
|
|
8069
8222
|
_id: z.string(),
|
|
8070
8223
|
description: z.string(),
|
|
8071
|
-
created: z.string().default("2025-09-
|
|
8072
|
-
updated: z.string().default("2025-09-
|
|
8224
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8225
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8073
8226
|
guardrail_config: z.union([
|
|
8074
8227
|
z.lazy(() =>
|
|
8075
8228
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -8111,8 +8264,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
8111
8264
|
> = z.object({
|
|
8112
8265
|
id: z.string(),
|
|
8113
8266
|
description: z.string(),
|
|
8114
|
-
created: z.string().default("2025-09-
|
|
8115
|
-
updated: z.string().default("2025-09-
|
|
8267
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8268
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8116
8269
|
guardrailConfig: z.union([
|
|
8117
8270
|
z.lazy(() =>
|
|
8118
8271
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8533,8 +8686,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8533
8686
|
> = z.object({
|
|
8534
8687
|
_id: z.string(),
|
|
8535
8688
|
description: z.string(),
|
|
8536
|
-
created: z.string().default("2025-09-
|
|
8537
|
-
updated: z.string().default("2025-09-
|
|
8689
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8690
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8538
8691
|
guardrail_config: z.union([
|
|
8539
8692
|
z.lazy(() =>
|
|
8540
8693
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8582,8 +8735,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8582
8735
|
> = z.object({
|
|
8583
8736
|
id: z.string(),
|
|
8584
8737
|
description: z.string(),
|
|
8585
|
-
created: z.string().default("2025-09-
|
|
8586
|
-
updated: z.string().default("2025-09-
|
|
8738
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8739
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8587
8740
|
guardrailConfig: z.union([
|
|
8588
8741
|
z.lazy(() =>
|
|
8589
8742
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -8973,8 +9126,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
8973
9126
|
> = z.object({
|
|
8974
9127
|
_id: z.string(),
|
|
8975
9128
|
description: z.string(),
|
|
8976
|
-
created: z.string().default("2025-09-
|
|
8977
|
-
updated: z.string().default("2025-09-
|
|
9129
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9130
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
8978
9131
|
guardrail_config: z.union([
|
|
8979
9132
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
8980
9133
|
z.lazy(() =>
|
|
@@ -9014,8 +9167,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
9014
9167
|
> = z.object({
|
|
9015
9168
|
id: z.string(),
|
|
9016
9169
|
description: z.string(),
|
|
9017
|
-
created: z.string().default("2025-09-
|
|
9018
|
-
updated: z.string().default("2025-09-
|
|
9170
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9171
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9019
9172
|
guardrailConfig: z.union([
|
|
9020
9173
|
z.lazy(() =>
|
|
9021
9174
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -9373,8 +9526,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
9373
9526
|
> = z.object({
|
|
9374
9527
|
_id: z.string(),
|
|
9375
9528
|
description: z.string(),
|
|
9376
|
-
created: z.string().default("2025-09-
|
|
9377
|
-
updated: z.string().default("2025-09-
|
|
9529
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9530
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9378
9531
|
guardrail_config: z.union([
|
|
9379
9532
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
9380
9533
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9414,8 +9567,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9414
9567
|
> = z.object({
|
|
9415
9568
|
id: z.string(),
|
|
9416
9569
|
description: z.string(),
|
|
9417
|
-
created: z.string().default("2025-09-
|
|
9418
|
-
updated: z.string().default("2025-09-
|
|
9570
|
+
created: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9571
|
+
updated: z.string().default("2025-09-24T04:54:54.913Z"),
|
|
9419
9572
|
guardrailConfig: z.union([
|
|
9420
9573
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9421
9574
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -112,6 +112,7 @@ export type UpdatePromptEncodingFormat = ClosedEnum<
|
|
|
112
112
|
*/
|
|
113
113
|
export const UpdatePromptReasoningEffort = {
|
|
114
114
|
Disable: "disable",
|
|
115
|
+
Minimal: "minimal",
|
|
115
116
|
Low: "low",
|
|
116
117
|
Medium: "medium",
|
|
117
118
|
High: "high",
|
|
@@ -640,6 +641,7 @@ export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
|
|
|
640
641
|
*/
|
|
641
642
|
export const UpdatePromptPromptsReasoningEffort = {
|
|
642
643
|
Disable: "disable",
|
|
644
|
+
Minimal: "minimal",
|
|
643
645
|
Low: "low",
|
|
644
646
|
Medium: "medium",
|
|
645
647
|
High: "high",
|
|
@@ -7,7 +7,6 @@ import { agentsListActions } from "../funcs/agentsListActions.js";
|
|
|
7
7
|
import { agentsRetrieve } from "../funcs/agentsRetrieve.js";
|
|
8
8
|
import { agentsRetrieveAction } from "../funcs/agentsRetrieveAction.js";
|
|
9
9
|
import { agentsRetrieveTask } from "../funcs/agentsRetrieveTask.js";
|
|
10
|
-
import { agentsReviewAction } from "../funcs/agentsReviewAction.js";
|
|
11
10
|
import { agentsRun } from "../funcs/agentsRun.js";
|
|
12
11
|
import { agentsStreamRun } from "../funcs/agentsStreamRun.js";
|
|
13
12
|
import { EventStream } from "../lib/event-streams.js";
|
|
@@ -71,7 +70,7 @@ export class Agents extends ClientSDK {
|
|
|
71
70
|
* Run an agent
|
|
72
71
|
*
|
|
73
72
|
* @remarks
|
|
74
|
-
* Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
73
|
+
* Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
|
|
75
74
|
*/
|
|
76
75
|
async run(
|
|
77
76
|
request?: operations.RunAgentRequestBody | undefined,
|
|
@@ -88,7 +87,7 @@ export class Agents extends ClientSDK {
|
|
|
88
87
|
* Run and stream agent execution
|
|
89
88
|
*
|
|
90
89
|
* @remarks
|
|
91
|
-
* Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.
|
|
90
|
+
* Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.
|
|
92
91
|
*/
|
|
93
92
|
async streamRun(
|
|
94
93
|
request?: operations.StreamRunAgentRequestBody | undefined,
|
|
@@ -128,21 +127,4 @@ export class Agents extends ClientSDK {
|
|
|
128
127
|
options,
|
|
129
128
|
));
|
|
130
129
|
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Review a tool execution
|
|
134
|
-
*
|
|
135
|
-
* @remarks
|
|
136
|
-
* Review a tool execution and approve, reject or mock it. This will trigger the next step in the agent execution.
|
|
137
|
-
*/
|
|
138
|
-
async reviewAction(
|
|
139
|
-
request: operations.ReviewActionRequest,
|
|
140
|
-
options?: RequestOptions,
|
|
141
|
-
): Promise<operations.ReviewActionResponseBody> {
|
|
142
|
-
return unwrapAsync(agentsReviewAction(
|
|
143
|
-
this,
|
|
144
|
-
request,
|
|
145
|
-
options,
|
|
146
|
-
));
|
|
147
|
-
}
|
|
148
130
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.12.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.12.
|
|
71
|
+
sdkVersion: "3.12.16",
|
|
72
|
+
genVersion: "2.714.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.12.16 2.714.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from "./getpromptversion.js";
|
|
|
48
48
|
export * from "./honoapierror.js";
|
|
49
49
|
export * from "./httpclienterrors.js";
|
|
50
50
|
export * from "./invokeeval.js";
|
|
51
|
+
export * from "./orqerror.js";
|
|
51
52
|
export * from "./responsevalidationerror.js";
|
|
52
53
|
export * from "./retrievecontact.js";
|
|
53
54
|
export * from "./sdkvalidationerror.js";
|
|
@@ -655,7 +655,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
655
655
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
656
656
|
.optional(),
|
|
657
657
|
updated: z.string().datetime({ offset: true }).default(
|
|
658
|
-
"2025-09-
|
|
658
|
+
"2025-09-24T09:52:09.422Z",
|
|
659
659
|
).transform(v => new Date(v)),
|
|
660
660
|
}).transform((v) => {
|
|
661
661
|
return remap$(v, {
|
|
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
693
693
|
isActive: z.boolean(),
|
|
694
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
695
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
696
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-09-24T09:52:09.422Z"))
|
|
697
697
|
.transform(v => v.toISOString()),
|
|
698
698
|
}).transform((v) => {
|
|
699
699
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-09-
|
|
185
|
+
"2025-09-24T09:52:09.422Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-09-24T09:52:09.422Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|