@arizeai/phoenix-client 1.2.0 → 2.0.0
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 +118 -0
- package/dist/esm/client.d.ts +13 -1
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +4 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/datasets/appendDatasetExamples.d.ts +21 -0
- package/dist/esm/datasets/appendDatasetExamples.d.ts.map +1 -0
- package/dist/esm/datasets/appendDatasetExamples.js +32 -0
- package/dist/esm/datasets/appendDatasetExamples.js.map +1 -0
- package/dist/esm/datasets/createDataset.d.ts +25 -0
- package/dist/esm/datasets/createDataset.d.ts.map +1 -0
- package/dist/esm/datasets/createDataset.js +34 -0
- package/dist/esm/datasets/createDataset.js.map +1 -0
- package/dist/esm/datasets/getDataset.d.ts +10 -0
- package/dist/esm/datasets/getDataset.d.ts.map +1 -0
- package/dist/esm/datasets/getDataset.js +18 -0
- package/dist/esm/datasets/getDataset.js.map +1 -0
- package/dist/esm/datasets/getDatasetExamples.d.ts +10 -0
- package/dist/esm/datasets/getDatasetExamples.d.ts.map +1 -0
- package/dist/esm/datasets/getDatasetExamples.js +25 -0
- package/dist/esm/datasets/getDatasetExamples.js.map +1 -0
- package/dist/esm/datasets/getDatasetInfo.d.ts +11 -0
- package/dist/esm/datasets/getDatasetInfo.d.ts.map +1 -0
- package/dist/esm/datasets/getDatasetInfo.js +25 -0
- package/dist/esm/datasets/getDatasetInfo.js.map +1 -0
- package/dist/esm/datasets/index.d.ts +7 -0
- package/dist/esm/datasets/index.d.ts.map +1 -0
- package/dist/esm/datasets/index.js +7 -0
- package/dist/esm/datasets/index.js.map +1 -0
- package/dist/esm/datasets/listDatasets.d.ts +23 -0
- package/dist/esm/datasets/listDatasets.d.ts.map +1 -0
- package/dist/esm/datasets/listDatasets.js +26 -0
- package/dist/esm/datasets/listDatasets.js.map +1 -0
- package/dist/esm/experiments/getExperiment.d.ts +14 -0
- package/dist/esm/experiments/getExperiment.d.ts.map +1 -0
- package/dist/esm/experiments/getExperiment.js +25 -0
- package/dist/esm/experiments/getExperiment.js.map +1 -0
- package/dist/esm/experiments/getExperimentInfo.d.ts +13 -0
- package/dist/esm/experiments/getExperimentInfo.d.ts.map +1 -0
- package/dist/esm/experiments/getExperimentInfo.js +24 -0
- package/dist/esm/experiments/getExperimentInfo.js.map +1 -0
- package/dist/esm/experiments/getExperimentRuns.d.ts +15 -0
- package/dist/esm/experiments/getExperimentRuns.d.ts.map +1 -0
- package/dist/esm/experiments/getExperimentRuns.js +33 -0
- package/dist/esm/experiments/getExperimentRuns.js.map +1 -0
- package/dist/esm/experiments/index.d.ts +3 -0
- package/dist/esm/experiments/index.d.ts.map +1 -1
- package/dist/esm/experiments/index.js +3 -0
- package/dist/esm/experiments/index.js.map +1 -1
- package/dist/esm/experiments/instrumention.d.ts +18 -0
- package/dist/esm/experiments/instrumention.d.ts.map +1 -0
- package/dist/esm/experiments/instrumention.js +34 -0
- package/dist/esm/experiments/instrumention.js.map +1 -0
- package/dist/esm/experiments/runExperiment.d.ts +24 -21
- package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
- package/dist/esm/experiments/runExperiment.js +221 -108
- package/dist/esm/experiments/runExperiment.js.map +1 -1
- package/dist/esm/schemas/llm/anthropic/converters.d.ts +28 -28
- package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +24 -24
- package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/constants.d.ts +6 -6
- package/dist/esm/schemas/llm/converters.d.ts +24 -24
- package/dist/esm/schemas/llm/openai/converters.d.ts +6 -6
- package/dist/esm/schemas/llm/schemas.d.ts +22 -22
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types/datasets.d.ts +33 -8
- package/dist/esm/types/datasets.d.ts.map +1 -1
- package/dist/esm/types/experiments.d.ts +17 -4
- package/dist/esm/types/experiments.d.ts.map +1 -1
- package/dist/esm/utils/ensureString.d.ts +8 -0
- package/dist/esm/utils/ensureString.d.ts.map +1 -0
- package/dist/esm/utils/ensureString.js +14 -0
- package/dist/esm/utils/ensureString.js.map +1 -0
- package/dist/esm/utils/objectAsAttributes.d.ts +3 -0
- package/dist/esm/utils/objectAsAttributes.d.ts.map +1 -0
- package/dist/esm/utils/objectAsAttributes.js +4 -0
- package/dist/esm/utils/objectAsAttributes.js.map +1 -0
- package/dist/src/client.d.ts +13 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +1 -1
- package/dist/src/client.js.map +1 -1
- package/dist/src/datasets/appendDatasetExamples.d.ts +21 -0
- package/dist/src/datasets/appendDatasetExamples.d.ts.map +1 -0
- package/dist/src/datasets/appendDatasetExamples.js +50 -0
- package/dist/src/datasets/appendDatasetExamples.js.map +1 -0
- package/dist/src/datasets/createDataset.d.ts +25 -0
- package/dist/src/datasets/createDataset.d.ts.map +1 -0
- package/dist/src/datasets/createDataset.js +52 -0
- package/dist/src/datasets/createDataset.js.map +1 -0
- package/dist/src/datasets/getDataset.d.ts +10 -0
- package/dist/src/datasets/getDataset.d.ts.map +1 -0
- package/dist/src/datasets/getDataset.js +29 -0
- package/dist/src/datasets/getDataset.js.map +1 -0
- package/dist/src/datasets/getDatasetExamples.d.ts +10 -0
- package/dist/src/datasets/getDatasetExamples.d.ts.map +1 -0
- package/dist/src/datasets/getDatasetExamples.js +40 -0
- package/dist/src/datasets/getDatasetExamples.js.map +1 -0
- package/dist/src/datasets/getDatasetInfo.d.ts +11 -0
- package/dist/src/datasets/getDatasetInfo.d.ts.map +1 -0
- package/dist/src/datasets/getDatasetInfo.js +43 -0
- package/dist/src/datasets/getDatasetInfo.js.map +1 -0
- package/dist/src/datasets/index.d.ts +7 -0
- package/dist/src/datasets/index.d.ts.map +1 -0
- package/dist/src/datasets/index.js +23 -0
- package/dist/src/datasets/index.js.map +1 -0
- package/dist/src/datasets/listDatasets.d.ts +23 -0
- package/dist/src/datasets/listDatasets.d.ts.map +1 -0
- package/dist/src/datasets/listDatasets.js +40 -0
- package/dist/src/datasets/listDatasets.js.map +1 -0
- package/dist/src/experiments/getExperiment.d.ts +14 -0
- package/dist/src/experiments/getExperiment.d.ts.map +1 -0
- package/dist/src/experiments/getExperiment.js +36 -0
- package/dist/src/experiments/getExperiment.js.map +1 -0
- package/dist/src/experiments/getExperimentInfo.d.ts +13 -0
- package/dist/src/experiments/getExperimentInfo.d.ts.map +1 -0
- package/dist/src/experiments/getExperimentInfo.js +41 -0
- package/dist/src/experiments/getExperimentInfo.js.map +1 -0
- package/dist/src/experiments/getExperimentRuns.d.ts +15 -0
- package/dist/src/experiments/getExperimentRuns.d.ts.map +1 -0
- package/dist/src/experiments/getExperimentRuns.js +50 -0
- package/dist/src/experiments/getExperimentRuns.js.map +1 -0
- package/dist/src/experiments/index.d.ts +3 -0
- package/dist/src/experiments/index.d.ts.map +1 -1
- package/dist/src/experiments/index.js +3 -0
- package/dist/src/experiments/index.js.map +1 -1
- package/dist/src/experiments/instrumention.d.ts +18 -0
- package/dist/src/experiments/instrumention.d.ts.map +1 -0
- package/dist/src/experiments/instrumention.js +38 -0
- package/dist/src/experiments/instrumention.js.map +1 -0
- package/dist/src/experiments/runExperiment.d.ts +24 -21
- package/dist/src/experiments/runExperiment.d.ts.map +1 -1
- package/dist/src/experiments/runExperiment.js +222 -111
- package/dist/src/experiments/runExperiment.js.map +1 -1
- package/dist/src/schemas/llm/anthropic/converters.d.ts +28 -28
- package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +24 -24
- package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/constants.d.ts +6 -6
- package/dist/src/schemas/llm/converters.d.ts +24 -24
- package/dist/src/schemas/llm/openai/converters.d.ts +6 -6
- package/dist/src/schemas/llm/schemas.d.ts +22 -22
- package/dist/src/types/datasets.d.ts +33 -8
- package/dist/src/types/datasets.d.ts.map +1 -1
- package/dist/src/types/experiments.d.ts +17 -4
- package/dist/src/types/experiments.d.ts.map +1 -1
- package/dist/src/utils/ensureString.d.ts +8 -0
- package/dist/src/utils/ensureString.d.ts.map +1 -0
- package/dist/src/utils/ensureString.js +18 -0
- package/dist/src/utils/ensureString.js.map +1 -0
- package/dist/src/utils/objectAsAttributes.d.ts +3 -0
- package/dist/src/utils/objectAsAttributes.d.ts.map +1 -0
- package/dist/src/utils/objectAsAttributes.js +7 -0
- package/dist/src/utils/objectAsAttributes.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -1
- package/src/client.ts +4 -1
- package/src/datasets/appendDatasetExamples.ts +55 -0
- package/src/datasets/createDataset.ts +60 -0
- package/src/datasets/getDataset.ts +27 -0
- package/src/datasets/getDatasetExamples.ts +34 -0
- package/src/datasets/getDatasetInfo.ts +34 -0
- package/src/datasets/index.ts +6 -0
- package/src/datasets/listDatasets.ts +37 -0
- package/src/experiments/getExperiment.ts +40 -0
- package/src/experiments/getExperimentInfo.ts +39 -0
- package/src/experiments/getExperimentRuns.ts +45 -0
- package/src/experiments/index.ts +3 -0
- package/src/experiments/instrumention.ts +52 -0
- package/src/experiments/runExperiment.ts +277 -133
- package/src/types/datasets.ts +35 -9
- package/src/types/experiments.ts +19 -4
- package/src/utils/ensureString.ts +14 -0
- package/src/utils/objectAsAttributes.ts +9 -0
- package/dist/esm/utils/getDatasetBySelector.d.ts +0 -25
- package/dist/esm/utils/getDatasetBySelector.d.ts.map +0 -1
- package/dist/esm/utils/getDatasetBySelector.js +0 -37
- package/dist/esm/utils/getDatasetBySelector.js.map +0 -1
- package/dist/src/utils/getDatasetBySelector.d.ts +0 -25
- package/dist/src/utils/getDatasetBySelector.d.ts.map +0 -1
- package/dist/src/utils/getDatasetBySelector.js +0 -47
- package/dist/src/utils/getDatasetBySelector.js.map +0 -1
- package/src/utils/getDatasetBySelector.ts +0 -55
|
@@ -48,14 +48,14 @@ export declare const anthropicToolUseBlockSchema: z.ZodObject<{
|
|
|
48
48
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
type: "tool_use";
|
|
51
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
52
|
-
id: string;
|
|
53
51
|
name: string;
|
|
52
|
+
id: string;
|
|
53
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
54
54
|
}, {
|
|
55
55
|
type: "tool_use";
|
|
56
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
57
|
-
id: string;
|
|
58
56
|
name: string;
|
|
57
|
+
id: string;
|
|
58
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
59
59
|
}>;
|
|
60
60
|
export type AnthropicToolUseBlock = z.infer<typeof anthropicToolUseBlockSchema>;
|
|
61
61
|
export declare const anthropicToolResultBlockSchema: z.ZodObject<{
|
|
@@ -178,14 +178,14 @@ export declare const anthropicMessagePartSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
178
178
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
type: "tool_use";
|
|
181
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
182
|
-
id: string;
|
|
183
181
|
name: string;
|
|
182
|
+
id: string;
|
|
183
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
184
184
|
}, {
|
|
185
185
|
type: "tool_use";
|
|
186
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
187
|
-
id: string;
|
|
188
186
|
name: string;
|
|
187
|
+
id: string;
|
|
188
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
189
189
|
}>, z.ZodObject<{
|
|
190
190
|
type: z.ZodLiteral<"tool_result">;
|
|
191
191
|
tool_use_id: z.ZodString;
|
|
@@ -56,14 +56,14 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
56
56
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
type: "tool_use";
|
|
59
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
60
|
-
id: string;
|
|
61
59
|
name: string;
|
|
60
|
+
id: string;
|
|
61
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
62
62
|
}, {
|
|
63
63
|
type: "tool_use";
|
|
64
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
65
|
-
id: string;
|
|
66
64
|
name: string;
|
|
65
|
+
id: string;
|
|
66
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
67
67
|
}>, z.ZodObject<{
|
|
68
68
|
type: z.ZodLiteral<"tool_result">;
|
|
69
69
|
tool_use_id: z.ZodString;
|
|
@@ -185,14 +185,14 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
185
185
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
type: "tool_use";
|
|
188
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
189
|
-
id: string;
|
|
190
188
|
name: string;
|
|
189
|
+
id: string;
|
|
190
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
191
191
|
}, {
|
|
192
192
|
type: "tool_use";
|
|
193
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
194
|
-
id: string;
|
|
195
193
|
name: string;
|
|
194
|
+
id: string;
|
|
195
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
196
196
|
}>, z.ZodObject<{
|
|
197
197
|
type: z.ZodLiteral<"tool_result">;
|
|
198
198
|
tool_use_id: z.ZodString;
|
|
@@ -314,14 +314,14 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
314
314
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
316
|
type: "tool_use";
|
|
317
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
318
|
-
id: string;
|
|
319
317
|
name: string;
|
|
318
|
+
id: string;
|
|
319
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
320
320
|
}, {
|
|
321
321
|
type: "tool_use";
|
|
322
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
323
|
-
id: string;
|
|
324
322
|
name: string;
|
|
323
|
+
id: string;
|
|
324
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
325
325
|
}>, z.ZodObject<{
|
|
326
326
|
type: z.ZodLiteral<"tool_result">;
|
|
327
327
|
tool_use_id: z.ZodString;
|
|
@@ -445,14 +445,14 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
445
445
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
447
|
type: "tool_use";
|
|
448
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
449
|
-
id: string;
|
|
450
448
|
name: string;
|
|
449
|
+
id: string;
|
|
450
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
451
451
|
}, {
|
|
452
452
|
type: "tool_use";
|
|
453
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
454
|
-
id: string;
|
|
455
453
|
name: string;
|
|
454
|
+
id: string;
|
|
455
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
456
456
|
}>, z.ZodObject<{
|
|
457
457
|
type: z.ZodLiteral<"tool_result">;
|
|
458
458
|
tool_use_id: z.ZodString;
|
|
@@ -574,14 +574,14 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
574
574
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
575
575
|
}, "strip", z.ZodTypeAny, {
|
|
576
576
|
type: "tool_use";
|
|
577
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
578
|
-
id: string;
|
|
579
577
|
name: string;
|
|
578
|
+
id: string;
|
|
579
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
580
580
|
}, {
|
|
581
581
|
type: "tool_use";
|
|
582
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
583
|
-
id: string;
|
|
584
582
|
name: string;
|
|
583
|
+
id: string;
|
|
584
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
585
585
|
}>, z.ZodObject<{
|
|
586
586
|
type: z.ZodLiteral<"tool_result">;
|
|
587
587
|
tool_use_id: z.ZodString;
|
|
@@ -703,14 +703,14 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
703
703
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
704
704
|
}, "strip", z.ZodTypeAny, {
|
|
705
705
|
type: "tool_use";
|
|
706
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
707
|
-
id: string;
|
|
708
706
|
name: string;
|
|
707
|
+
id: string;
|
|
708
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
709
709
|
}, {
|
|
710
710
|
type: "tool_use";
|
|
711
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
712
|
-
id: string;
|
|
713
711
|
name: string;
|
|
712
|
+
id: string;
|
|
713
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
714
714
|
}>, z.ZodObject<{
|
|
715
715
|
type: z.ZodLiteral<"tool_result">;
|
|
716
716
|
tool_use_id: z.ZodString;
|
|
@@ -9,14 +9,14 @@ export declare const anthropicToolCallSchema: z.ZodObject<{
|
|
|
9
9
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
type: "tool_use";
|
|
12
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
13
|
-
id: string;
|
|
14
12
|
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
15
15
|
}, {
|
|
16
16
|
type: "tool_use";
|
|
17
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
18
|
-
id: string;
|
|
19
17
|
name: string;
|
|
18
|
+
id: string;
|
|
19
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
22
|
* The type of an Anthropic tool call
|
|
@@ -32,14 +32,14 @@ export declare const anthropicToolCallsSchema: z.ZodArray<z.ZodObject<{
|
|
|
32
32
|
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
type: "tool_use";
|
|
35
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
36
|
-
id: string;
|
|
37
35
|
name: string;
|
|
36
|
+
id: string;
|
|
37
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
38
38
|
}, {
|
|
39
39
|
type: "tool_use";
|
|
40
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
41
|
-
id: string;
|
|
42
40
|
name: string;
|
|
41
|
+
id: string;
|
|
42
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
43
43
|
}>, "many">;
|
|
44
44
|
/**
|
|
45
45
|
* Creates an empty Anthropic tool call with fields but no values filled in
|
|
@@ -4276,14 +4276,14 @@ export declare const SDKProviderConverterMap: {
|
|
|
4276
4276
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
4277
4277
|
}, "strip", z.ZodTypeAny, {
|
|
4278
4278
|
type: "tool_use";
|
|
4279
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4280
|
-
id: string;
|
|
4281
4279
|
name: string;
|
|
4280
|
+
id: string;
|
|
4281
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4282
4282
|
}, {
|
|
4283
4283
|
type: "tool_use";
|
|
4284
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4285
|
-
id: string;
|
|
4286
4284
|
name: string;
|
|
4285
|
+
id: string;
|
|
4286
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4287
4287
|
}>, z.ZodObject<{
|
|
4288
4288
|
type: z.ZodLiteral<"tool_result">;
|
|
4289
4289
|
tool_use_id: z.ZodString;
|
|
@@ -4591,9 +4591,9 @@ export declare const SDKProviderConverterMap: {
|
|
|
4591
4591
|
type?: "function" | undefined;
|
|
4592
4592
|
}>, {
|
|
4593
4593
|
type: "tool_use";
|
|
4594
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4595
|
-
id: string;
|
|
4596
4594
|
name: string;
|
|
4595
|
+
id: string;
|
|
4596
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
4597
4597
|
}, {
|
|
4598
4598
|
function: {
|
|
4599
4599
|
name: string;
|
|
@@ -4277,14 +4277,14 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
4277
4277
|
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
4278
4278
|
}, "strip", z.ZodTypeAny, {
|
|
4279
4279
|
type: "tool_use";
|
|
4280
|
-
input: JSONLiteral;
|
|
4281
|
-
id: string;
|
|
4282
4280
|
name: string;
|
|
4281
|
+
id: string;
|
|
4282
|
+
input: JSONLiteral;
|
|
4283
4283
|
}, {
|
|
4284
4284
|
type: "tool_use";
|
|
4285
|
-
input: JSONLiteral;
|
|
4286
|
-
id: string;
|
|
4287
4285
|
name: string;
|
|
4286
|
+
id: string;
|
|
4287
|
+
input: JSONLiteral;
|
|
4288
4288
|
}>, z.ZodObject<{
|
|
4289
4289
|
type: z.ZodLiteral<"tool_result">;
|
|
4290
4290
|
tool_use_id: z.ZodString;
|
|
@@ -4592,9 +4592,9 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
4592
4592
|
type?: "function" | undefined;
|
|
4593
4593
|
}>, {
|
|
4594
4594
|
type: "tool_use";
|
|
4595
|
-
input: JSONLiteral;
|
|
4596
|
-
id: string;
|
|
4597
4595
|
name: string;
|
|
4596
|
+
id: string;
|
|
4597
|
+
input: JSONLiteral;
|
|
4598
4598
|
}, {
|
|
4599
4599
|
function: {
|
|
4600
4600
|
name: string;
|
|
@@ -13378,14 +13378,14 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
13378
13378
|
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
13379
13379
|
}, "strip", z.ZodTypeAny, {
|
|
13380
13380
|
type: "tool_use";
|
|
13381
|
-
input: JSONLiteral;
|
|
13382
|
-
id: string;
|
|
13383
13381
|
name: string;
|
|
13382
|
+
id: string;
|
|
13383
|
+
input: JSONLiteral;
|
|
13384
13384
|
}, {
|
|
13385
13385
|
type: "tool_use";
|
|
13386
|
-
input: JSONLiteral;
|
|
13387
|
-
id: string;
|
|
13388
13386
|
name: string;
|
|
13387
|
+
id: string;
|
|
13388
|
+
input: JSONLiteral;
|
|
13389
13389
|
}>, z.ZodObject<{
|
|
13390
13390
|
type: z.ZodLiteral<"tool_result">;
|
|
13391
13391
|
tool_use_id: z.ZodString;
|
|
@@ -13693,9 +13693,9 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
13693
13693
|
type?: "function" | undefined;
|
|
13694
13694
|
}>, {
|
|
13695
13695
|
type: "tool_use";
|
|
13696
|
-
input: JSONLiteral;
|
|
13697
|
-
id: string;
|
|
13698
13696
|
name: string;
|
|
13697
|
+
id: string;
|
|
13698
|
+
input: JSONLiteral;
|
|
13699
13699
|
}, {
|
|
13700
13700
|
function: {
|
|
13701
13701
|
name: string;
|
|
@@ -22479,14 +22479,14 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
22479
22479
|
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
22480
22480
|
}, "strip", z.ZodTypeAny, {
|
|
22481
22481
|
type: "tool_use";
|
|
22482
|
-
input: JSONLiteral;
|
|
22483
|
-
id: string;
|
|
22484
22482
|
name: string;
|
|
22483
|
+
id: string;
|
|
22484
|
+
input: JSONLiteral;
|
|
22485
22485
|
}, {
|
|
22486
22486
|
type: "tool_use";
|
|
22487
|
-
input: JSONLiteral;
|
|
22488
|
-
id: string;
|
|
22489
22487
|
name: string;
|
|
22488
|
+
id: string;
|
|
22489
|
+
input: JSONLiteral;
|
|
22490
22490
|
}>, z.ZodObject<{
|
|
22491
22491
|
type: z.ZodLiteral<"tool_result">;
|
|
22492
22492
|
tool_use_id: z.ZodString;
|
|
@@ -22794,9 +22794,9 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
22794
22794
|
type?: "function" | undefined;
|
|
22795
22795
|
}>, {
|
|
22796
22796
|
type: "tool_use";
|
|
22797
|
-
input: JSONLiteral;
|
|
22798
|
-
id: string;
|
|
22799
22797
|
name: string;
|
|
22798
|
+
id: string;
|
|
22799
|
+
input: JSONLiteral;
|
|
22800
22800
|
}, {
|
|
22801
22801
|
function: {
|
|
22802
22802
|
name: string;
|
|
@@ -31580,14 +31580,14 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
31580
31580
|
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
31581
31581
|
}, "strip", z.ZodTypeAny, {
|
|
31582
31582
|
type: "tool_use";
|
|
31583
|
-
input: JSONLiteral;
|
|
31584
|
-
id: string;
|
|
31585
31583
|
name: string;
|
|
31584
|
+
id: string;
|
|
31585
|
+
input: JSONLiteral;
|
|
31586
31586
|
}, {
|
|
31587
31587
|
type: "tool_use";
|
|
31588
|
-
input: JSONLiteral;
|
|
31589
|
-
id: string;
|
|
31590
31588
|
name: string;
|
|
31589
|
+
id: string;
|
|
31590
|
+
input: JSONLiteral;
|
|
31591
31591
|
}>, z.ZodObject<{
|
|
31592
31592
|
type: z.ZodLiteral<"tool_result">;
|
|
31593
31593
|
tool_use_id: z.ZodString;
|
|
@@ -31895,9 +31895,9 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
31895
31895
|
type?: "function" | undefined;
|
|
31896
31896
|
}>, {
|
|
31897
31897
|
type: "tool_use";
|
|
31898
|
-
input: JSONLiteral;
|
|
31899
|
-
id: string;
|
|
31900
31898
|
name: string;
|
|
31899
|
+
id: string;
|
|
31900
|
+
input: JSONLiteral;
|
|
31901
31901
|
}, {
|
|
31902
31902
|
function: {
|
|
31903
31903
|
name: string;
|
|
@@ -460,14 +460,14 @@ export declare const openAIMessageToAnthropic: import("zod").ZodEffects<import("
|
|
|
460
460
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
461
461
|
}, "strip", import("zod").ZodTypeAny, {
|
|
462
462
|
type: "tool_use";
|
|
463
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
464
|
-
id: string;
|
|
465
463
|
name: string;
|
|
464
|
+
id: string;
|
|
465
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
466
466
|
}, {
|
|
467
467
|
type: "tool_use";
|
|
468
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
469
|
-
id: string;
|
|
470
468
|
name: string;
|
|
469
|
+
id: string;
|
|
470
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
471
471
|
}>, import("zod").ZodObject<{
|
|
472
472
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
473
473
|
tool_use_id: import("zod").ZodString;
|
|
@@ -1726,9 +1726,9 @@ export declare const openAIToolCallToAnthropic: import("zod").ZodEffects<import(
|
|
|
1726
1726
|
type?: "function" | undefined;
|
|
1727
1727
|
}>, {
|
|
1728
1728
|
type: "tool_use";
|
|
1729
|
-
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
1730
|
-
id: string;
|
|
1731
1729
|
name: string;
|
|
1730
|
+
id: string;
|
|
1731
|
+
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
1732
1732
|
}, {
|
|
1733
1733
|
function: {
|
|
1734
1734
|
name: string;
|
|
@@ -412,14 +412,14 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
412
412
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
414
414
|
type: "tool_use";
|
|
415
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
416
|
-
id: string;
|
|
417
415
|
name: string;
|
|
416
|
+
id: string;
|
|
417
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
418
418
|
}, {
|
|
419
419
|
type: "tool_use";
|
|
420
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
421
|
-
id: string;
|
|
422
420
|
name: string;
|
|
421
|
+
id: string;
|
|
422
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
423
423
|
}>, z.ZodObject<{
|
|
424
424
|
type: z.ZodLiteral<"tool_result">;
|
|
425
425
|
tool_use_id: z.ZodString;
|
|
@@ -541,14 +541,14 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
541
541
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
543
|
type: "tool_use";
|
|
544
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
545
|
-
id: string;
|
|
546
544
|
name: string;
|
|
545
|
+
id: string;
|
|
546
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
547
547
|
}, {
|
|
548
548
|
type: "tool_use";
|
|
549
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
550
|
-
id: string;
|
|
551
549
|
name: string;
|
|
550
|
+
id: string;
|
|
551
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
552
552
|
}>, z.ZodObject<{
|
|
553
553
|
type: z.ZodLiteral<"tool_result">;
|
|
554
554
|
tool_use_id: z.ZodString;
|
|
@@ -670,14 +670,14 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
670
670
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
671
671
|
}, "strip", z.ZodTypeAny, {
|
|
672
672
|
type: "tool_use";
|
|
673
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
674
|
-
id: string;
|
|
675
673
|
name: string;
|
|
674
|
+
id: string;
|
|
675
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
676
676
|
}, {
|
|
677
677
|
type: "tool_use";
|
|
678
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
679
|
-
id: string;
|
|
680
678
|
name: string;
|
|
679
|
+
id: string;
|
|
680
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
681
681
|
}>, z.ZodObject<{
|
|
682
682
|
type: z.ZodLiteral<"tool_result">;
|
|
683
683
|
tool_use_id: z.ZodString;
|
|
@@ -1025,14 +1025,14 @@ export declare const llmProviderToolCallSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1025
1025
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
1026
1026
|
}, "strip", z.ZodTypeAny, {
|
|
1027
1027
|
type: "tool_use";
|
|
1028
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1029
|
-
id: string;
|
|
1030
1028
|
name: string;
|
|
1029
|
+
id: string;
|
|
1030
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1031
1031
|
}, {
|
|
1032
1032
|
type: "tool_use";
|
|
1033
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1034
|
-
id: string;
|
|
1035
1033
|
name: string;
|
|
1034
|
+
id: string;
|
|
1035
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1036
1036
|
}>, z.ZodObject<{
|
|
1037
1037
|
type: z.ZodLiteral<"tool_call">;
|
|
1038
1038
|
tool_call_id: z.ZodString;
|
|
@@ -1125,14 +1125,14 @@ export declare const llmProviderToolCallsSchema: z.ZodArray<z.ZodUnion<[z.ZodObj
|
|
|
1125
1125
|
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
1126
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1127
1127
|
type: "tool_use";
|
|
1128
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1129
|
-
id: string;
|
|
1130
1128
|
name: string;
|
|
1129
|
+
id: string;
|
|
1130
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1131
1131
|
}, {
|
|
1132
1132
|
type: "tool_use";
|
|
1133
|
-
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1134
|
-
id: string;
|
|
1135
1133
|
name: string;
|
|
1134
|
+
id: string;
|
|
1135
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
1136
1136
|
}>, z.ZodObject<{
|
|
1137
1137
|
type: z.ZodLiteral<"tool_call">;
|
|
1138
1138
|
tool_call_id: z.ZodString;
|
|
@@ -1208,16 +1208,16 @@ export declare const toolCallHeuristicSchema: z.ZodObject<{
|
|
|
1208
1208
|
name?: string | undefined;
|
|
1209
1209
|
arguments?: Record<string, unknown> | undefined;
|
|
1210
1210
|
} | undefined;
|
|
1211
|
-
id?: string | undefined;
|
|
1212
1211
|
name?: string | undefined;
|
|
1212
|
+
id?: string | undefined;
|
|
1213
1213
|
arguments?: Record<string, unknown> | undefined;
|
|
1214
1214
|
}, {
|
|
1215
1215
|
function?: {
|
|
1216
1216
|
name?: string | undefined;
|
|
1217
1217
|
arguments?: Record<string, unknown> | undefined;
|
|
1218
1218
|
} | undefined;
|
|
1219
|
-
id?: string | undefined;
|
|
1220
1219
|
name?: string | undefined;
|
|
1220
|
+
id?: string | undefined;
|
|
1221
1221
|
arguments?: Record<string, unknown> | undefined;
|
|
1222
1222
|
}>;
|
|
1223
1223
|
export declare const llmProviderToolChoiceSchema: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|