@orq-ai/node 4.16.0-rc.32 → 4.16.0-rc.34
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 +42 -40
- package/funcs/evalsGet.d.ts +1 -1
- package/funcs/evalsGet.js +1 -1
- package/funcs/tracesGetConversation.d.ts +18 -0
- package/funcs/tracesGetConversation.d.ts.map +1 -0
- package/funcs/tracesGetConversation.js +125 -0
- package/funcs/tracesGetConversation.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/evaluatorresponsefunction.d.ts +20 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -1
- package/models/components/evaluatorresponsefunction.js +14 -1
- package/models/components/evaluatorresponsefunction.js.map +1 -1
- package/models/components/evaluatorresponsehttp.d.ts +19 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -1
- package/models/components/evaluatorresponsehttp.js +14 -1
- package/models/components/evaluatorresponsehttp.js.map +1 -1
- package/models/components/evaluatorresponsejsonschema.d.ts +20 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -1
- package/models/components/evaluatorresponsejsonschema.js +14 -1
- package/models/components/evaluatorresponsejsonschema.js.map +1 -1
- package/models/components/evaluatorresponsellm.d.ts +19 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -1
- package/models/components/evaluatorresponsellm.js +15 -1
- package/models/components/evaluatorresponsellm.js.map +1 -1
- package/models/components/evaluatorresponsepython.d.ts +20 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -1
- package/models/components/evaluatorresponsepython.js +14 -1
- package/models/components/evaluatorresponsepython.js.map +1 -1
- package/models/components/evaluatorresponseragas.d.ts +19 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -1
- package/models/components/evaluatorresponseragas.js +14 -1
- package/models/components/evaluatorresponseragas.js.map +1 -1
- package/models/components/evaluatorresponsetypescript.d.ts +20 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -1
- package/models/components/evaluatorresponsetypescript.js +14 -1
- package/models/components/evaluatorresponsetypescript.js.map +1 -1
- package/models/components/gettraceconversationresponse.d.ts +22 -0
- package/models/components/gettraceconversationresponse.d.ts.map +1 -0
- package/models/components/gettraceconversationresponse.js +65 -0
- package/models/components/gettraceconversationresponse.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createrouterresponse.d.ts +0 -5
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +0 -1
- package/models/operations/createrouterresponse.js.map +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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/tracesgetconversation.d.ts +17 -0
- package/models/operations/tracesgetconversation.d.ts.map +1 -0
- package/models/operations/tracesgetconversation.js +56 -0
- package/models/operations/tracesgetconversation.js.map +1 -0
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/evals.d.ts +1 -1
- package/sdk/evals.js +1 -1
- package/sdk/traces.d.ts +7 -0
- package/sdk/traces.d.ts.map +1 -1
- package/sdk/traces.js +10 -0
- package/sdk/traces.js.map +1 -1
- package/src/funcs/evalsGet.ts +1 -1
- package/src/funcs/tracesGetConversation.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/evaluatorresponsefunction.ts +28 -0
- package/src/models/components/evaluatorresponsehttp.ts +27 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +29 -0
- package/src/models/components/evaluatorresponsellm.ts +24 -0
- package/src/models/components/evaluatorresponsepython.ts +28 -0
- package/src/models/components/evaluatorresponseragas.ts +27 -0
- package/src/models/components/evaluatorresponsetypescript.ts +29 -0
- package/src/models/components/gettraceconversationresponse.ts +63 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +0 -6
- 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/index.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/tracesgetconversation.ts +45 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/evals.ts +1 -1
- package/src/sdk/traces.ts +18 -0
|
@@ -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_01m3scsze39ebd8mkp4v5d1xat"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -961,10 +961,6 @@ export type CreateRouterResponseRequestBody = {
|
|
|
961
961
|
*/
|
|
962
962
|
stream?: boolean | undefined;
|
|
963
963
|
streamOptions?: components.StreamOptions | undefined;
|
|
964
|
-
/**
|
|
965
|
-
* Tags attached to the request trace.
|
|
966
|
-
*/
|
|
967
|
-
tags?: Array<string> | null | undefined;
|
|
968
964
|
/**
|
|
969
965
|
* Sampling temperature between 0 and 2.
|
|
970
966
|
*/
|
|
@@ -2109,7 +2105,6 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2109
2105
|
store?: boolean | undefined;
|
|
2110
2106
|
stream?: boolean | undefined;
|
|
2111
2107
|
stream_options?: components.StreamOptions$Outbound | undefined;
|
|
2112
|
-
tags?: Array<string> | null | undefined;
|
|
2113
2108
|
temperature?: number | undefined;
|
|
2114
2109
|
template_engine?: string | undefined;
|
|
2115
2110
|
text?: CreateRouterResponseText$Outbound | undefined;
|
|
@@ -2195,7 +2190,6 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2195
2190
|
store: z.boolean().optional(),
|
|
2196
2191
|
stream: z.boolean().optional(),
|
|
2197
2192
|
streamOptions: components.StreamOptions$outboundSchema.optional(),
|
|
2198
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
2199
2193
|
temperature: z.number().optional(),
|
|
2200
2194
|
templateEngine: TemplateEngine$outboundSchema.optional(),
|
|
2201
2195
|
text: z.lazy(() => CreateRouterResponseText$outboundSchema).optional(),
|
|
@@ -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_01M3SCSZJTEEJESCKB4DJM64EC"),
|
|
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_01M3SCSZJSVP1FD1V08T64PQAR"),
|
|
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_01M3SCSZJRDT6DB1RRNCMKDZRP"),
|
|
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_01M3SCSZJQ13T1RQXKD36M2BN8"),
|
|
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_01M3SCSZJK5NM6Y0N38YYV34X3"),
|
|
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_01M3SCSZJHE2Q9CEEKF1MF26JK"),
|
|
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_01M3SCSZJHQTG10F6895GQY4XF"),
|
|
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_01M3SCSZJGX0C5XP7KH9Y89545"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-09-
|
|
143
|
+
"2026-09-30T14:51:46.790Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-09-
|
|
188
|
+
"2026-09-30T14:51:46.790Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-09-
|
|
144
|
+
"2026-09-30T14:51:46.790Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-09-
|
|
189
|
+
"2026-09-30T14:51:46.790Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -238,6 +238,7 @@ export * from "./streamagent.js";
|
|
|
238
238
|
export * from "./streamrunagent.js";
|
|
239
239
|
export * from "./telemetrylistcapabilities.js";
|
|
240
240
|
export * from "./tracesget.js";
|
|
241
|
+
export * from "./tracesgetconversation.js";
|
|
241
242
|
export * from "./tracesgetspan.js";
|
|
242
243
|
export * from "./traceslistfacetvalues.js";
|
|
243
244
|
export * from "./traceslistfilters.js";
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-09-
|
|
321
|
+
"2026-09-30T14:51:46.790Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-09-
|
|
367
|
+
"2026-09-30T14:51:46.790Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T14:51:55.929Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T14:51:55.928Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T14:51:55.928Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T14:51:55.928Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-09-
|
|
274
|
+
"2026-09-30T14:51:46.790Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-09-
|
|
319
|
+
"2026-09-30T14:51:46.790Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M3SCSZK9GZ6QTK81DE7DRA4B"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M3SCSZK8HAPD1BPWV7E1K8YR"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M3SCSZK714KKYSE9T10GMVSZ"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M3SCSZK6QA5G8PR80JJ3K92X"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M3SCSZG10RCCWS7F4KBJ942K"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M3SCSZGQNFWR1EJEA4779TVC"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type TracesGetConversationRequest = {
|
|
9
|
+
traceId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Read the conversation from this span instead of the automatically selected one.
|
|
12
|
+
*/
|
|
13
|
+
spanId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type TracesGetConversationRequest$Outbound = {
|
|
18
|
+
trace_id: string;
|
|
19
|
+
span_id?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const TracesGetConversationRequest$outboundSchema: z.ZodType<
|
|
24
|
+
TracesGetConversationRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
TracesGetConversationRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
traceId: z.string(),
|
|
29
|
+
spanId: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
traceId: "trace_id",
|
|
33
|
+
spanId: "span_id",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function tracesGetConversationRequestToJSON(
|
|
38
|
+
tracesGetConversationRequest: TracesGetConversationRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
TracesGetConversationRequest$outboundSchema.parse(
|
|
42
|
+
tracesGetConversationRequest,
|
|
43
|
+
),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M3SCSZJZ9B1H9ZS0JBQTBPFC"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M3SCSZJYYT53B0K1VSTMGPFM"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M3SCSZJXV93MY3CAC2DPNZPF"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M3SCSZJX7J99TMGEX98V5DZV"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/evals.ts
CHANGED
|
@@ -54,7 +54,7 @@ export class Evals extends ClientSDK {
|
|
|
54
54
|
* Retrieve an Evaluator
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* Retrieve a single evaluator by ID with more detail than the list endpoint: full type-specific config, owner, domain_id, metadata
|
|
57
|
+
* Retrieve a single evaluator by ID with more detail than the list endpoint: full type-specific config, owner, domain_id, metadata and enabled.
|
|
58
58
|
*/
|
|
59
59
|
async get(
|
|
60
60
|
request: operations.GetEvalRequest,
|
package/src/sdk/traces.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { tracesAggregate } from "../funcs/tracesAggregate.js";
|
|
6
6
|
import { tracesGet } from "../funcs/tracesGet.js";
|
|
7
|
+
import { tracesGetConversation } from "../funcs/tracesGetConversation.js";
|
|
7
8
|
import { tracesGetSpan } from "../funcs/tracesGetSpan.js";
|
|
8
9
|
import { tracesListFacets } from "../funcs/tracesListFacets.js";
|
|
9
10
|
import { tracesListFacetValues } from "../funcs/tracesListFacetValues.js";
|
|
@@ -150,6 +151,23 @@ export class Traces extends ClientSDK {
|
|
|
150
151
|
));
|
|
151
152
|
}
|
|
152
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Get trace conversation
|
|
156
|
+
*
|
|
157
|
+
* @remarks
|
|
158
|
+
* Return ordered OpenResponses items from the selected model-call span. Prefers spans with output outside evaluator subtrees unless `span_id` is given.
|
|
159
|
+
*/
|
|
160
|
+
async getConversation(
|
|
161
|
+
request: operations.TracesGetConversationRequest,
|
|
162
|
+
options?: RequestOptions,
|
|
163
|
+
): Promise<components.GetTraceConversationResponse> {
|
|
164
|
+
return unwrapAsync(tracesGetConversation(
|
|
165
|
+
this,
|
|
166
|
+
request,
|
|
167
|
+
options,
|
|
168
|
+
));
|
|
169
|
+
}
|
|
170
|
+
|
|
153
171
|
/**
|
|
154
172
|
* List trace spans
|
|
155
173
|
*
|