@arizeai/phoenix-client 2.3.1 → 2.3.3

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.
Files changed (60) hide show
  1. package/dist/esm/datasets/getDatasetInfoByName.d.ts.map +1 -1
  2. package/dist/esm/datasets/getDatasetInfoByName.js +4 -2
  3. package/dist/esm/datasets/getDatasetInfoByName.js.map +1 -1
  4. package/dist/esm/schemas/llm/anthropic/converters.d.ts +14 -14
  5. package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
  6. package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +12 -12
  7. package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
  8. package/dist/esm/schemas/llm/constants.d.ts +3 -3
  9. package/dist/esm/schemas/llm/converters.d.ts +12 -12
  10. package/dist/esm/schemas/llm/openai/converters.d.ts +3 -3
  11. package/dist/esm/schemas/llm/schemas.d.ts +12 -12
  12. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  13. package/dist/src/datasets/appendDatasetExamples.js +34 -45
  14. package/dist/src/datasets/appendDatasetExamples.js.map +1 -1
  15. package/dist/src/datasets/createDataset.js +25 -36
  16. package/dist/src/datasets/createDataset.js.map +1 -1
  17. package/dist/src/datasets/getDataset.js +7 -18
  18. package/dist/src/datasets/getDataset.js.map +1 -1
  19. package/dist/src/datasets/getDatasetExamples.js +25 -36
  20. package/dist/src/datasets/getDatasetExamples.js.map +1 -1
  21. package/dist/src/datasets/getDatasetInfo.js +22 -33
  22. package/dist/src/datasets/getDatasetInfo.js.map +1 -1
  23. package/dist/src/datasets/getDatasetInfoByName.d.ts.map +1 -1
  24. package/dist/src/datasets/getDatasetInfoByName.js +19 -28
  25. package/dist/src/datasets/getDatasetInfoByName.js.map +1 -1
  26. package/dist/src/datasets/listDatasets.js +6 -17
  27. package/dist/src/datasets/listDatasets.js.map +1 -1
  28. package/dist/src/experiments/getExperiment.js +13 -24
  29. package/dist/src/experiments/getExperiment.js.map +1 -1
  30. package/dist/src/experiments/getExperimentInfo.js +15 -26
  31. package/dist/src/experiments/getExperimentInfo.js.map +1 -1
  32. package/dist/src/experiments/getExperimentRuns.js +24 -35
  33. package/dist/src/experiments/getExperimentRuns.js.map +1 -1
  34. package/dist/src/experiments/runExperiment.js +280 -295
  35. package/dist/src/experiments/runExperiment.js.map +1 -1
  36. package/dist/src/prompts/createPrompt.js +14 -25
  37. package/dist/src/prompts/createPrompt.js.map +1 -1
  38. package/dist/src/prompts/getPrompt.js +4 -15
  39. package/dist/src/prompts/getPrompt.js.map +1 -1
  40. package/dist/src/schemas/llm/anthropic/converters.d.ts +14 -14
  41. package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
  42. package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +12 -12
  43. package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
  44. package/dist/src/schemas/llm/constants.d.ts +3 -3
  45. package/dist/src/schemas/llm/converters.d.ts +12 -12
  46. package/dist/src/schemas/llm/openai/converters.d.ts +3 -3
  47. package/dist/src/schemas/llm/schemas.d.ts +12 -12
  48. package/dist/src/spans/addSpanAnnotation.js +14 -25
  49. package/dist/src/spans/addSpanAnnotation.js.map +1 -1
  50. package/dist/src/spans/getSpanAnnotations.js +29 -40
  51. package/dist/src/spans/getSpanAnnotations.js.map +1 -1
  52. package/dist/src/spans/getSpans.js +29 -40
  53. package/dist/src/spans/getSpans.js.map +1 -1
  54. package/dist/src/spans/logSpanAnnotations.js +14 -25
  55. package/dist/src/spans/logSpanAnnotations.js.map +1 -1
  56. package/dist/src/utils/getPromptBySelector.js +37 -48
  57. package/dist/src/utils/getPromptBySelector.js.map +1 -1
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +1 -1
  60. package/src/datasets/getDatasetInfoByName.ts +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"getDatasetInfoByName.d.ts","sourceRoot":"","sources":["../../../src/datasets/getDatasetInfoByName.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,MAAM,EAAE,OAAO,EACf,WAAW,GACZ,EAAE,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAoBzC"}
1
+ {"version":3,"file":"getDatasetInfoByName.d.ts","sourceRoot":"","sources":["../../../src/datasets/getDatasetInfoByName.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,MAAM,EAAE,OAAO,EACf,WAAW,GACZ,EAAE,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAsBzC"}
@@ -5,8 +5,10 @@ import { createClient } from "../client.js";
5
5
  export async function getDatasetInfoByName({ client: _client, datasetName, }) {
6
6
  const client = _client || createClient();
7
7
  const response = await client.GET("/v1/datasets", {
8
- query: {
9
- name: datasetName,
8
+ params: {
9
+ query: {
10
+ name: datasetName,
11
+ },
10
12
  },
11
13
  });
12
14
  if (response.data?.data?.length) {
@@ -1 +1 @@
1
- {"version":3,"file":"getDatasetInfoByName.js","sourceRoot":"","sources":["../../../src/datasets/getDatasetInfoByName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EACzC,MAAM,EAAE,OAAO,EACf,WAAW,GACM;IACjB,MAAM,MAAM,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE;QAChD,KAAK,EAAE;YACL,IAAI,EAAE,WAAW;SAClB;KACF,CAAC,CAAC;IACH,IAAI,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,qBAAqB,WAAW,YAAY,CAAC,CAAC;QAChE,CAAC;QACD,OAAO;YACL,EAAE,EAAE,WAAW,CAAC,EAAE;YAClB,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,WAAW,EAAE,WAAW,CAAC,WAAW,IAAI,SAAS;YACjD,QAAQ,EAAE,WAAW,CAAC,QAAQ;SAC/B,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,qBAAqB,WAAW,YAAY,CAAC,CAAC;AAChE,CAAC"}
1
+ {"version":3,"file":"getDatasetInfoByName.js","sourceRoot":"","sources":["../../../src/datasets/getDatasetInfoByName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EACzC,MAAM,EAAE,OAAO,EACf,WAAW,GACM;IACjB,MAAM,MAAM,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE;QAChD,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,IAAI,EAAE,WAAW;aAClB;SACF;KACF,CAAC,CAAC;IACH,IAAI,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,qBAAqB,WAAW,YAAY,CAAC,CAAC;QAChE,CAAC;QACD,OAAO;YACL,EAAE,EAAE,WAAW,CAAC,EAAE;YAClB,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,WAAW,EAAE,WAAW,CAAC,WAAW,IAAI,SAAS;YACjD,QAAQ,EAAE,WAAW,CAAC,QAAQ;SAC/B,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,qBAAqB,WAAW,YAAY,CAAC,CAAC;AAChE,CAAC"}
@@ -43,13 +43,13 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
43
43
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
44
44
  }, "strip", import("zod").ZodTypeAny, {
45
45
  type: "tool_use";
46
- id: string;
47
46
  name: string;
47
+ id: string;
48
48
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
49
49
  }, {
50
50
  type: "tool_use";
51
- id: string;
52
51
  name: string;
52
+ id: string;
53
53
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
54
54
  }>, import("zod").ZodObject<{
55
55
  type: import("zod").ZodLiteral<"tool_result">;
@@ -134,8 +134,8 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
134
134
  };
135
135
  } | null, {
136
136
  type: "tool_use";
137
- id: string;
138
137
  name: string;
138
+ id: string;
139
139
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
140
140
  } | {
141
141
  text: string;
@@ -213,13 +213,13 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
213
213
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
214
214
  }, "strip", import("zod").ZodTypeAny, {
215
215
  type: "tool_use";
216
- id: string;
217
216
  name: string;
217
+ id: string;
218
218
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
219
219
  }, {
220
220
  type: "tool_use";
221
- id: string;
222
221
  name: string;
222
+ id: string;
223
223
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
224
224
  }>, import("zod").ZodObject<{
225
225
  type: import("zod").ZodLiteral<"tool_result">;
@@ -342,13 +342,13 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
342
342
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
343
343
  }, "strip", import("zod").ZodTypeAny, {
344
344
  type: "tool_use";
345
- id: string;
346
345
  name: string;
346
+ id: string;
347
347
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
348
348
  }, {
349
349
  type: "tool_use";
350
- id: string;
351
350
  name: string;
351
+ id: string;
352
352
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
353
353
  }>, import("zod").ZodObject<{
354
354
  type: import("zod").ZodLiteral<"tool_result">;
@@ -471,13 +471,13 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
471
471
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
472
472
  }, "strip", import("zod").ZodTypeAny, {
473
473
  type: "tool_use";
474
- id: string;
475
474
  name: string;
475
+ id: string;
476
476
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
477
477
  }, {
478
478
  type: "tool_use";
479
- id: string;
480
479
  name: string;
480
+ id: string;
481
481
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
482
482
  }>, import("zod").ZodObject<{
483
483
  type: import("zod").ZodLiteral<"tool_result">;
@@ -721,13 +721,13 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
721
721
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
722
722
  }, "strip", import("zod").ZodTypeAny, {
723
723
  type: "tool_use";
724
- id: string;
725
724
  name: string;
725
+ id: string;
726
726
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
727
727
  }, {
728
728
  type: "tool_use";
729
- id: string;
730
729
  name: string;
730
+ id: string;
731
731
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
732
732
  }>, import("zod").ZodObject<{
733
733
  type: import("zod").ZodLiteral<"tool_result">;
@@ -814,13 +814,13 @@ export declare const anthropicToolCallToOpenAI: import("zod").ZodEffects<import(
814
814
  input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
815
815
  }, "strip", import("zod").ZodTypeAny, {
816
816
  type: "tool_use";
817
- id: string;
818
817
  name: string;
818
+ id: string;
819
819
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
820
820
  }, {
821
821
  type: "tool_use";
822
- id: string;
823
822
  name: string;
823
+ id: string;
824
824
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
825
825
  }>, {
826
826
  function: {
@@ -833,8 +833,8 @@ export declare const anthropicToolCallToOpenAI: import("zod").ZodEffects<import(
833
833
  id: string;
834
834
  }, {
835
835
  type: "tool_use";
836
- id: string;
837
836
  name: string;
837
+ id: string;
838
838
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
839
839
  }>;
840
840
  /**
@@ -48,13 +48,13 @@ 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
- id: string;
52
51
  name: string;
52
+ id: string;
53
53
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
54
54
  }, {
55
55
  type: "tool_use";
56
- id: string;
57
56
  name: string;
57
+ id: string;
58
58
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
59
59
  }>;
60
60
  export type AnthropicToolUseBlock = z.infer<typeof anthropicToolUseBlockSchema>;
@@ -178,13 +178,13 @@ 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
- id: string;
182
181
  name: string;
182
+ id: string;
183
183
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
184
184
  }, {
185
185
  type: "tool_use";
186
- id: string;
187
186
  name: string;
187
+ id: string;
188
188
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
189
189
  }>, z.ZodObject<{
190
190
  type: z.ZodLiteral<"tool_result">;
@@ -56,13 +56,13 @@ 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
- id: string;
60
59
  name: string;
60
+ id: string;
61
61
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
62
62
  }, {
63
63
  type: "tool_use";
64
- id: string;
65
64
  name: string;
65
+ id: string;
66
66
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
67
67
  }>, z.ZodObject<{
68
68
  type: z.ZodLiteral<"tool_result">;
@@ -185,13 +185,13 @@ 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
- id: string;
189
188
  name: string;
189
+ id: string;
190
190
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
191
191
  }, {
192
192
  type: "tool_use";
193
- id: string;
194
193
  name: string;
194
+ id: string;
195
195
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
196
196
  }>, z.ZodObject<{
197
197
  type: z.ZodLiteral<"tool_result">;
@@ -314,13 +314,13 @@ 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
- id: string;
318
317
  name: string;
318
+ id: string;
319
319
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
320
320
  }, {
321
321
  type: "tool_use";
322
- id: string;
323
322
  name: string;
323
+ id: string;
324
324
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
325
325
  }>, z.ZodObject<{
326
326
  type: z.ZodLiteral<"tool_result">;
@@ -445,13 +445,13 @@ 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
- id: string;
449
448
  name: string;
449
+ id: string;
450
450
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
451
451
  }, {
452
452
  type: "tool_use";
453
- id: string;
454
453
  name: string;
454
+ id: string;
455
455
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
456
456
  }>, z.ZodObject<{
457
457
  type: z.ZodLiteral<"tool_result">;
@@ -574,13 +574,13 @@ 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
- id: string;
578
577
  name: string;
578
+ id: string;
579
579
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
580
580
  }, {
581
581
  type: "tool_use";
582
- id: string;
583
582
  name: string;
583
+ id: string;
584
584
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
585
585
  }>, z.ZodObject<{
586
586
  type: z.ZodLiteral<"tool_result">;
@@ -703,13 +703,13 @@ 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
- id: string;
707
706
  name: string;
707
+ id: string;
708
708
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
709
709
  }, {
710
710
  type: "tool_use";
711
- id: string;
712
711
  name: string;
712
+ id: string;
713
713
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
714
714
  }>, z.ZodObject<{
715
715
  type: z.ZodLiteral<"tool_result">;
@@ -9,13 +9,13 @@ 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
- id: string;
13
12
  name: string;
13
+ id: string;
14
14
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
15
15
  }, {
16
16
  type: "tool_use";
17
- id: string;
18
17
  name: string;
18
+ id: string;
19
19
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
20
20
  }>;
21
21
  /**
@@ -32,13 +32,13 @@ 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
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
38
38
  }, {
39
39
  type: "tool_use";
40
- id: string;
41
40
  name: string;
41
+ id: string;
42
42
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
43
43
  }>, "many">;
44
44
  /**
@@ -4276,13 +4276,13 @@ 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
- id: string;
4280
4279
  name: string;
4280
+ id: string;
4281
4281
  input: import("../jsonLiteralSchema.js").JSONLiteral;
4282
4282
  }, {
4283
4283
  type: "tool_use";
4284
- id: string;
4285
4284
  name: string;
4285
+ id: string;
4286
4286
  input: import("../jsonLiteralSchema.js").JSONLiteral;
4287
4287
  }>, z.ZodObject<{
4288
4288
  type: z.ZodLiteral<"tool_result">;
@@ -4591,8 +4591,8 @@ export declare const SDKProviderConverterMap: {
4591
4591
  type?: "function" | undefined;
4592
4592
  }>, {
4593
4593
  type: "tool_use";
4594
- id: string;
4595
4594
  name: string;
4595
+ id: string;
4596
4596
  input: import("../jsonLiteralSchema.js").JSONLiteral;
4597
4597
  }, {
4598
4598
  function: {
@@ -4277,13 +4277,13 @@ 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
- id: string;
4281
4280
  name: string;
4281
+ id: string;
4282
4282
  input: JSONLiteral;
4283
4283
  }, {
4284
4284
  type: "tool_use";
4285
- id: string;
4286
4285
  name: string;
4286
+ id: string;
4287
4287
  input: JSONLiteral;
4288
4288
  }>, z.ZodObject<{
4289
4289
  type: z.ZodLiteral<"tool_result">;
@@ -4592,8 +4592,8 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
4592
4592
  type?: "function" | undefined;
4593
4593
  }>, {
4594
4594
  type: "tool_use";
4595
- id: string;
4596
4595
  name: string;
4596
+ id: string;
4597
4597
  input: JSONLiteral;
4598
4598
  }, {
4599
4599
  function: {
@@ -13378,13 +13378,13 @@ 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
- id: string;
13382
13381
  name: string;
13382
+ id: string;
13383
13383
  input: JSONLiteral;
13384
13384
  }, {
13385
13385
  type: "tool_use";
13386
- id: string;
13387
13386
  name: string;
13387
+ id: string;
13388
13388
  input: JSONLiteral;
13389
13389
  }>, z.ZodObject<{
13390
13390
  type: z.ZodLiteral<"tool_result">;
@@ -13693,8 +13693,8 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
13693
13693
  type?: "function" | undefined;
13694
13694
  }>, {
13695
13695
  type: "tool_use";
13696
- id: string;
13697
13696
  name: string;
13697
+ id: string;
13698
13698
  input: JSONLiteral;
13699
13699
  }, {
13700
13700
  function: {
@@ -22479,13 +22479,13 @@ 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
- id: string;
22483
22482
  name: string;
22483
+ id: string;
22484
22484
  input: JSONLiteral;
22485
22485
  }, {
22486
22486
  type: "tool_use";
22487
- id: string;
22488
22487
  name: string;
22488
+ id: string;
22489
22489
  input: JSONLiteral;
22490
22490
  }>, z.ZodObject<{
22491
22491
  type: z.ZodLiteral<"tool_result">;
@@ -22794,8 +22794,8 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
22794
22794
  type?: "function" | undefined;
22795
22795
  }>, {
22796
22796
  type: "tool_use";
22797
- id: string;
22798
22797
  name: string;
22798
+ id: string;
22799
22799
  input: JSONLiteral;
22800
22800
  }, {
22801
22801
  function: {
@@ -31580,13 +31580,13 @@ 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
- id: string;
31584
31583
  name: string;
31584
+ id: string;
31585
31585
  input: JSONLiteral;
31586
31586
  }, {
31587
31587
  type: "tool_use";
31588
- id: string;
31589
31588
  name: string;
31589
+ id: string;
31590
31590
  input: JSONLiteral;
31591
31591
  }>, z.ZodObject<{
31592
31592
  type: z.ZodLiteral<"tool_result">;
@@ -31895,8 +31895,8 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
31895
31895
  type?: "function" | undefined;
31896
31896
  }>, {
31897
31897
  type: "tool_use";
31898
- id: string;
31899
31898
  name: string;
31899
+ id: string;
31900
31900
  input: JSONLiteral;
31901
31901
  }, {
31902
31902
  function: {
@@ -460,13 +460,13 @@ 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
- id: string;
464
463
  name: string;
464
+ id: string;
465
465
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
466
466
  }, {
467
467
  type: "tool_use";
468
- id: string;
469
468
  name: string;
469
+ id: string;
470
470
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
471
471
  }>, import("zod").ZodObject<{
472
472
  type: import("zod").ZodLiteral<"tool_result">;
@@ -1726,8 +1726,8 @@ export declare const openAIToolCallToAnthropic: import("zod").ZodEffects<import(
1726
1726
  type?: "function" | undefined;
1727
1727
  }>, {
1728
1728
  type: "tool_use";
1729
- id: string;
1730
1729
  name: string;
1730
+ id: string;
1731
1731
  input: import("../../jsonLiteralSchema.js").JSONLiteral;
1732
1732
  }, {
1733
1733
  function: {
@@ -412,13 +412,13 @@ 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
- id: string;
416
415
  name: string;
416
+ id: string;
417
417
  input: import("../jsonLiteralSchema.js").JSONLiteral;
418
418
  }, {
419
419
  type: "tool_use";
420
- id: string;
421
420
  name: string;
421
+ id: string;
422
422
  input: import("../jsonLiteralSchema.js").JSONLiteral;
423
423
  }>, z.ZodObject<{
424
424
  type: z.ZodLiteral<"tool_result">;
@@ -541,13 +541,13 @@ 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
- id: string;
545
544
  name: string;
545
+ id: string;
546
546
  input: import("../jsonLiteralSchema.js").JSONLiteral;
547
547
  }, {
548
548
  type: "tool_use";
549
- id: string;
550
549
  name: string;
550
+ id: string;
551
551
  input: import("../jsonLiteralSchema.js").JSONLiteral;
552
552
  }>, z.ZodObject<{
553
553
  type: z.ZodLiteral<"tool_result">;
@@ -670,13 +670,13 @@ 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
- id: string;
674
673
  name: string;
674
+ id: string;
675
675
  input: import("../jsonLiteralSchema.js").JSONLiteral;
676
676
  }, {
677
677
  type: "tool_use";
678
- id: string;
679
678
  name: string;
679
+ id: string;
680
680
  input: import("../jsonLiteralSchema.js").JSONLiteral;
681
681
  }>, z.ZodObject<{
682
682
  type: z.ZodLiteral<"tool_result">;
@@ -1025,13 +1025,13 @@ 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
- id: string;
1029
1028
  name: string;
1029
+ id: string;
1030
1030
  input: import("../jsonLiteralSchema.js").JSONLiteral;
1031
1031
  }, {
1032
1032
  type: "tool_use";
1033
- id: string;
1034
1033
  name: string;
1034
+ id: string;
1035
1035
  input: import("../jsonLiteralSchema.js").JSONLiteral;
1036
1036
  }>, z.ZodObject<{
1037
1037
  type: z.ZodLiteral<"tool_call">;
@@ -1125,13 +1125,13 @@ 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
- id: string;
1129
1128
  name: string;
1129
+ id: string;
1130
1130
  input: import("../jsonLiteralSchema.js").JSONLiteral;
1131
1131
  }, {
1132
1132
  type: "tool_use";
1133
- id: string;
1134
1133
  name: string;
1134
+ id: string;
1135
1135
  input: import("../jsonLiteralSchema.js").JSONLiteral;
1136
1136
  }>, z.ZodObject<{
1137
1137
  type: z.ZodLiteral<"tool_call">;
@@ -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<{