@arizeai/phoenix-client 3.1.0 → 4.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 +22 -1
- package/dist/esm/__generated__/api/v1.d.ts +185 -47
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toAI.d.ts +13 -3
- package/dist/esm/prompts/sdks/toAI.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toAI.js +23 -15
- package/dist/esm/prompts/sdks/toAI.js.map +1 -1
- package/dist/esm/prompts/sdks/toSDK.d.ts +1 -1
- package/dist/esm/schemas/llm/constants.d.ts +30 -12
- package/dist/esm/schemas/llm/constants.d.ts.map +1 -1
- package/dist/esm/schemas/llm/converters.d.ts +120 -48
- package/dist/esm/schemas/llm/converters.d.ts.map +1 -1
- package/dist/esm/schemas/llm/openai/converters.d.ts +6 -3
- package/dist/esm/schemas/llm/openai/converters.d.ts.map +1 -1
- package/dist/esm/schemas/llm/openai/converters.js +7 -4
- package/dist/esm/schemas/llm/openai/converters.js.map +1 -1
- package/dist/esm/schemas/llm/schemas.d.ts +37 -16
- package/dist/esm/schemas/llm/schemas.d.ts.map +1 -1
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts +42 -12
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts.map +1 -1
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.js +5 -2
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.js.map +1 -1
- package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +31 -10
- package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts.map +1 -1
- package/dist/esm/schemas/llm/vercel/toolSchemas.d.ts +3 -3
- package/dist/esm/schemas/llm/vercel/toolSchemas.js +1 -1
- package/dist/esm/schemas/llm/vercel/toolSchemas.js.map +1 -1
- package/dist/esm/spans/addDocumentAnnotation.d.ts +45 -0
- package/dist/esm/spans/addDocumentAnnotation.d.ts.map +1 -0
- package/dist/esm/spans/addDocumentAnnotation.js +45 -0
- package/dist/esm/spans/addDocumentAnnotation.js.map +1 -0
- package/dist/esm/spans/addSpanAnnotation.d.ts +8 -2
- package/dist/esm/spans/addSpanAnnotation.d.ts.map +1 -1
- package/dist/esm/spans/addSpanAnnotation.js +5 -5
- package/dist/esm/spans/addSpanAnnotation.js.map +1 -1
- package/dist/esm/spans/index.d.ts +2 -0
- package/dist/esm/spans/index.d.ts.map +1 -1
- package/dist/esm/spans/index.js +2 -0
- package/dist/esm/spans/index.js.map +1 -1
- package/dist/esm/spans/logDocumentAnnotations.d.ts +58 -0
- package/dist/esm/spans/logDocumentAnnotations.d.ts.map +1 -0
- package/dist/esm/spans/logDocumentAnnotations.js +55 -0
- package/dist/esm/spans/logDocumentAnnotations.js.map +1 -0
- package/dist/esm/spans/logSpanAnnotations.d.ts +7 -1
- package/dist/esm/spans/logSpanAnnotations.d.ts.map +1 -1
- package/dist/esm/spans/logSpanAnnotations.js +5 -5
- package/dist/esm/spans/logSpanAnnotations.js.map +1 -1
- package/dist/esm/spans/types.d.ts +48 -0
- package/dist/esm/spans/types.d.ts.map +1 -1
- package/dist/esm/spans/types.js +41 -8
- package/dist/esm/spans/types.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +185 -47
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toAI.d.ts +13 -3
- package/dist/src/prompts/sdks/toAI.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toAI.js +24 -16
- package/dist/src/prompts/sdks/toAI.js.map +1 -1
- package/dist/src/prompts/sdks/toSDK.d.ts +1 -1
- package/dist/src/schemas/llm/constants.d.ts +30 -12
- package/dist/src/schemas/llm/constants.d.ts.map +1 -1
- package/dist/src/schemas/llm/converters.d.ts +120 -48
- package/dist/src/schemas/llm/converters.d.ts.map +1 -1
- package/dist/src/schemas/llm/openai/converters.d.ts +6 -3
- package/dist/src/schemas/llm/openai/converters.d.ts.map +1 -1
- package/dist/src/schemas/llm/openai/converters.js +7 -4
- package/dist/src/schemas/llm/openai/converters.js.map +1 -1
- package/dist/src/schemas/llm/schemas.d.ts +37 -16
- package/dist/src/schemas/llm/schemas.d.ts.map +1 -1
- package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts +42 -12
- package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts.map +1 -1
- package/dist/src/schemas/llm/vercel/messagePartSchemas.js +5 -2
- package/dist/src/schemas/llm/vercel/messagePartSchemas.js.map +1 -1
- package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +31 -10
- package/dist/src/schemas/llm/vercel/messageSchemas.d.ts.map +1 -1
- package/dist/src/schemas/llm/vercel/toolSchemas.d.ts +3 -3
- package/dist/src/schemas/llm/vercel/toolSchemas.js +1 -1
- package/dist/src/schemas/llm/vercel/toolSchemas.js.map +1 -1
- package/dist/src/spans/addDocumentAnnotation.d.ts +45 -0
- package/dist/src/spans/addDocumentAnnotation.d.ts.map +1 -0
- package/dist/src/spans/addDocumentAnnotation.js +49 -0
- package/dist/src/spans/addDocumentAnnotation.js.map +1 -0
- package/dist/src/spans/addSpanAnnotation.d.ts +8 -2
- package/dist/src/spans/addSpanAnnotation.d.ts.map +1 -1
- package/dist/src/spans/addSpanAnnotation.js +6 -6
- package/dist/src/spans/addSpanAnnotation.js.map +1 -1
- package/dist/src/spans/index.d.ts +2 -0
- package/dist/src/spans/index.d.ts.map +1 -1
- package/dist/src/spans/index.js +2 -0
- package/dist/src/spans/index.js.map +1 -1
- package/dist/src/spans/logDocumentAnnotations.d.ts +58 -0
- package/dist/src/spans/logDocumentAnnotations.d.ts.map +1 -0
- package/dist/src/spans/logDocumentAnnotations.js +58 -0
- package/dist/src/spans/logDocumentAnnotations.js.map +1 -0
- package/dist/src/spans/logSpanAnnotations.d.ts +7 -1
- package/dist/src/spans/logSpanAnnotations.d.ts.map +1 -1
- package/dist/src/spans/logSpanAnnotations.js +5 -6
- package/dist/src/spans/logSpanAnnotations.js.map +1 -1
- package/dist/src/spans/types.d.ts +48 -0
- package/dist/src/spans/types.d.ts.map +1 -1
- package/dist/src/spans/types.js +45 -10
- package/dist/src/spans/types.js.map +1 -1
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/__generated__/api/v1.d.ts +1240 -1238
- package/src/__generated__/api/v1.ts +185 -47
- package/src/prompts/sdks/toAI.ts +42 -32
- package/src/schemas/llm/openai/converters.ts +7 -4
- package/src/schemas/llm/vercel/messagePartSchemas.ts +5 -2
- package/src/schemas/llm/vercel/toolSchemas.ts +1 -1
- package/src/spans/addDocumentAnnotation.ts +66 -0
- package/src/spans/addSpanAnnotation.ts +12 -6
- package/src/spans/index.ts +2 -0
- package/src/spans/logDocumentAnnotations.ts +79 -0
- package/src/spans/logSpanAnnotations.ts +11 -5
- package/src/spans/types.ts +112 -8
|
@@ -7190,17 +7190,20 @@ export declare const SDKProviderConverterMap: {
|
|
|
7190
7190
|
type: "text";
|
|
7191
7191
|
} | {
|
|
7192
7192
|
type: "tool-call";
|
|
7193
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7193
7194
|
toolName: string;
|
|
7194
7195
|
toolCallId: string;
|
|
7195
|
-
args: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7196
7196
|
})[];
|
|
7197
7197
|
role: "assistant";
|
|
7198
7198
|
} | {
|
|
7199
7199
|
content: {
|
|
7200
7200
|
type: "tool-result";
|
|
7201
|
+
output: {
|
|
7202
|
+
value: string;
|
|
7203
|
+
type: "text";
|
|
7204
|
+
};
|
|
7201
7205
|
toolName: string;
|
|
7202
7206
|
toolCallId: string;
|
|
7203
|
-
result: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7204
7207
|
}[];
|
|
7205
7208
|
role: "tool";
|
|
7206
7209
|
}, z.objectInputType<{
|
|
@@ -7349,32 +7352,47 @@ export declare const SDKProviderConverterMap: {
|
|
|
7349
7352
|
type: z.ZodLiteral<"tool-call">;
|
|
7350
7353
|
toolCallId: z.ZodString;
|
|
7351
7354
|
toolName: z.ZodString;
|
|
7352
|
-
|
|
7355
|
+
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
7353
7356
|
}, "strip", z.ZodTypeAny, {
|
|
7354
7357
|
type: "tool-call";
|
|
7358
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7355
7359
|
toolName: string;
|
|
7356
7360
|
toolCallId: string;
|
|
7357
|
-
args: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7358
7361
|
}, {
|
|
7359
7362
|
type: "tool-call";
|
|
7363
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7360
7364
|
toolName: string;
|
|
7361
7365
|
toolCallId: string;
|
|
7362
|
-
args: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7363
7366
|
}>, z.ZodObject<{
|
|
7364
7367
|
type: z.ZodLiteral<"tool-result">;
|
|
7365
7368
|
toolCallId: z.ZodString;
|
|
7366
7369
|
toolName: z.ZodString;
|
|
7367
|
-
|
|
7370
|
+
output: z.ZodObject<{
|
|
7371
|
+
type: z.ZodLiteral<"text">;
|
|
7372
|
+
value: z.ZodString;
|
|
7373
|
+
}, "strip", z.ZodTypeAny, {
|
|
7374
|
+
value: string;
|
|
7375
|
+
type: "text";
|
|
7376
|
+
}, {
|
|
7377
|
+
value: string;
|
|
7378
|
+
type: "text";
|
|
7379
|
+
}>;
|
|
7368
7380
|
}, "strip", z.ZodTypeAny, {
|
|
7369
7381
|
type: "tool-result";
|
|
7382
|
+
output: {
|
|
7383
|
+
value: string;
|
|
7384
|
+
type: "text";
|
|
7385
|
+
};
|
|
7370
7386
|
toolName: string;
|
|
7371
7387
|
toolCallId: string;
|
|
7372
|
-
result: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7373
7388
|
}, {
|
|
7374
7389
|
type: "tool-result";
|
|
7390
|
+
output: {
|
|
7391
|
+
value: string;
|
|
7392
|
+
type: "text";
|
|
7393
|
+
};
|
|
7375
7394
|
toolName: string;
|
|
7376
7395
|
toolCallId: string;
|
|
7377
|
-
result: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7378
7396
|
}>]>, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|
|
7379
7397
|
type: z.ZodLiteral<"function">;
|
|
7380
7398
|
function: z.ZodObject<{
|
|
@@ -7406,17 +7424,17 @@ export declare const SDKProviderConverterMap: {
|
|
|
7406
7424
|
type: z.ZodLiteral<"tool-call">;
|
|
7407
7425
|
toolCallId: z.ZodString;
|
|
7408
7426
|
toolName: z.ZodString;
|
|
7409
|
-
|
|
7427
|
+
input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema.js").JSONLiteral>;
|
|
7410
7428
|
}, "strip", z.ZodTypeAny, {
|
|
7411
7429
|
type: "tool-call";
|
|
7430
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7412
7431
|
toolName: string;
|
|
7413
7432
|
toolCallId: string;
|
|
7414
|
-
args: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7415
7433
|
}, {
|
|
7416
7434
|
type: "tool-call";
|
|
7435
|
+
input: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7417
7436
|
toolName: string;
|
|
7418
7437
|
toolCallId: string;
|
|
7419
|
-
args: import("../jsonLiteralSchema.js").JSONLiteral;
|
|
7420
7438
|
}>, z.ZodEffects<z.ZodObject<{
|
|
7421
7439
|
type: z.ZodLiteral<"function">;
|
|
7422
7440
|
function: z.ZodObject<{
|
|
@@ -8679,7 +8697,7 @@ export declare const SDKProviderConverterMap: {
|
|
|
8679
8697
|
}, z.ZodTypeAny, "passthrough">>;
|
|
8680
8698
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
8681
8699
|
type: "function";
|
|
8682
|
-
|
|
8700
|
+
inputSchema: {
|
|
8683
8701
|
_type?: unknown;
|
|
8684
8702
|
validate?: unknown;
|
|
8685
8703
|
jsonSchema?: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/schemas/llm/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAuCzD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAM/D,CAAC;AA6BF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/schemas/llm/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAuCzD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAM/D,CAAC;AA6BF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEW,CAAC"}
|
|
@@ -7191,17 +7191,20 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
7191
7191
|
type: "text";
|
|
7192
7192
|
} | {
|
|
7193
7193
|
type: "tool-call";
|
|
7194
|
+
input: JSONLiteral;
|
|
7194
7195
|
toolName: string;
|
|
7195
7196
|
toolCallId: string;
|
|
7196
|
-
args: JSONLiteral;
|
|
7197
7197
|
})[];
|
|
7198
7198
|
role: "assistant";
|
|
7199
7199
|
} | {
|
|
7200
7200
|
content: {
|
|
7201
7201
|
type: "tool-result";
|
|
7202
|
+
output: {
|
|
7203
|
+
value: string;
|
|
7204
|
+
type: "text";
|
|
7205
|
+
};
|
|
7202
7206
|
toolName: string;
|
|
7203
7207
|
toolCallId: string;
|
|
7204
|
-
result: JSONLiteral;
|
|
7205
7208
|
}[];
|
|
7206
7209
|
role: "tool";
|
|
7207
7210
|
}, z.objectInputType<{
|
|
@@ -7350,32 +7353,47 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
7350
7353
|
type: z.ZodLiteral<"tool-call">;
|
|
7351
7354
|
toolCallId: z.ZodString;
|
|
7352
7355
|
toolName: z.ZodString;
|
|
7353
|
-
|
|
7356
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
7354
7357
|
}, "strip", z.ZodTypeAny, {
|
|
7355
7358
|
type: "tool-call";
|
|
7359
|
+
input: JSONLiteral;
|
|
7356
7360
|
toolName: string;
|
|
7357
7361
|
toolCallId: string;
|
|
7358
|
-
args: JSONLiteral;
|
|
7359
7362
|
}, {
|
|
7360
7363
|
type: "tool-call";
|
|
7364
|
+
input: JSONLiteral;
|
|
7361
7365
|
toolName: string;
|
|
7362
7366
|
toolCallId: string;
|
|
7363
|
-
args: JSONLiteral;
|
|
7364
7367
|
}>, z.ZodObject<{
|
|
7365
7368
|
type: z.ZodLiteral<"tool-result">;
|
|
7366
7369
|
toolCallId: z.ZodString;
|
|
7367
7370
|
toolName: z.ZodString;
|
|
7368
|
-
|
|
7371
|
+
output: z.ZodObject<{
|
|
7372
|
+
type: z.ZodLiteral<"text">;
|
|
7373
|
+
value: z.ZodString;
|
|
7374
|
+
}, "strip", z.ZodTypeAny, {
|
|
7375
|
+
value: string;
|
|
7376
|
+
type: "text";
|
|
7377
|
+
}, {
|
|
7378
|
+
value: string;
|
|
7379
|
+
type: "text";
|
|
7380
|
+
}>;
|
|
7369
7381
|
}, "strip", z.ZodTypeAny, {
|
|
7370
7382
|
type: "tool-result";
|
|
7383
|
+
output: {
|
|
7384
|
+
value: string;
|
|
7385
|
+
type: "text";
|
|
7386
|
+
};
|
|
7371
7387
|
toolName: string;
|
|
7372
7388
|
toolCallId: string;
|
|
7373
|
-
result: JSONLiteral;
|
|
7374
7389
|
}, {
|
|
7375
7390
|
type: "tool-result";
|
|
7391
|
+
output: {
|
|
7392
|
+
value: string;
|
|
7393
|
+
type: "text";
|
|
7394
|
+
};
|
|
7376
7395
|
toolName: string;
|
|
7377
7396
|
toolCallId: string;
|
|
7378
|
-
result: JSONLiteral;
|
|
7379
7397
|
}>]>, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|
|
7380
7398
|
type: z.ZodLiteral<"function">;
|
|
7381
7399
|
function: z.ZodObject<{
|
|
@@ -7407,17 +7425,17 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
7407
7425
|
type: z.ZodLiteral<"tool-call">;
|
|
7408
7426
|
toolCallId: z.ZodString;
|
|
7409
7427
|
toolName: z.ZodString;
|
|
7410
|
-
|
|
7428
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
7411
7429
|
}, "strip", z.ZodTypeAny, {
|
|
7412
7430
|
type: "tool-call";
|
|
7431
|
+
input: JSONLiteral;
|
|
7413
7432
|
toolName: string;
|
|
7414
7433
|
toolCallId: string;
|
|
7415
|
-
args: JSONLiteral;
|
|
7416
7434
|
}, {
|
|
7417
7435
|
type: "tool-call";
|
|
7436
|
+
input: JSONLiteral;
|
|
7418
7437
|
toolName: string;
|
|
7419
7438
|
toolCallId: string;
|
|
7420
|
-
args: JSONLiteral;
|
|
7421
7439
|
}>, z.ZodEffects<z.ZodObject<{
|
|
7422
7440
|
type: z.ZodLiteral<"function">;
|
|
7423
7441
|
function: z.ZodObject<{
|
|
@@ -8680,7 +8698,7 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
8680
8698
|
}, z.ZodTypeAny, "passthrough">>;
|
|
8681
8699
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
8682
8700
|
type: "function";
|
|
8683
|
-
|
|
8701
|
+
inputSchema: {
|
|
8684
8702
|
_type?: unknown;
|
|
8685
8703
|
validate?: unknown;
|
|
8686
8704
|
jsonSchema?: Record<string, unknown> | undefined;
|
|
@@ -16292,17 +16310,20 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
16292
16310
|
type: "text";
|
|
16293
16311
|
} | {
|
|
16294
16312
|
type: "tool-call";
|
|
16313
|
+
input: JSONLiteral;
|
|
16295
16314
|
toolName: string;
|
|
16296
16315
|
toolCallId: string;
|
|
16297
|
-
args: JSONLiteral;
|
|
16298
16316
|
})[];
|
|
16299
16317
|
role: "assistant";
|
|
16300
16318
|
} | {
|
|
16301
16319
|
content: {
|
|
16302
16320
|
type: "tool-result";
|
|
16321
|
+
output: {
|
|
16322
|
+
value: string;
|
|
16323
|
+
type: "text";
|
|
16324
|
+
};
|
|
16303
16325
|
toolName: string;
|
|
16304
16326
|
toolCallId: string;
|
|
16305
|
-
result: JSONLiteral;
|
|
16306
16327
|
}[];
|
|
16307
16328
|
role: "tool";
|
|
16308
16329
|
}, z.objectInputType<{
|
|
@@ -16451,32 +16472,47 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
16451
16472
|
type: z.ZodLiteral<"tool-call">;
|
|
16452
16473
|
toolCallId: z.ZodString;
|
|
16453
16474
|
toolName: z.ZodString;
|
|
16454
|
-
|
|
16475
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
16455
16476
|
}, "strip", z.ZodTypeAny, {
|
|
16456
16477
|
type: "tool-call";
|
|
16478
|
+
input: JSONLiteral;
|
|
16457
16479
|
toolName: string;
|
|
16458
16480
|
toolCallId: string;
|
|
16459
|
-
args: JSONLiteral;
|
|
16460
16481
|
}, {
|
|
16461
16482
|
type: "tool-call";
|
|
16483
|
+
input: JSONLiteral;
|
|
16462
16484
|
toolName: string;
|
|
16463
16485
|
toolCallId: string;
|
|
16464
|
-
args: JSONLiteral;
|
|
16465
16486
|
}>, z.ZodObject<{
|
|
16466
16487
|
type: z.ZodLiteral<"tool-result">;
|
|
16467
16488
|
toolCallId: z.ZodString;
|
|
16468
16489
|
toolName: z.ZodString;
|
|
16469
|
-
|
|
16490
|
+
output: z.ZodObject<{
|
|
16491
|
+
type: z.ZodLiteral<"text">;
|
|
16492
|
+
value: z.ZodString;
|
|
16493
|
+
}, "strip", z.ZodTypeAny, {
|
|
16494
|
+
value: string;
|
|
16495
|
+
type: "text";
|
|
16496
|
+
}, {
|
|
16497
|
+
value: string;
|
|
16498
|
+
type: "text";
|
|
16499
|
+
}>;
|
|
16470
16500
|
}, "strip", z.ZodTypeAny, {
|
|
16471
16501
|
type: "tool-result";
|
|
16502
|
+
output: {
|
|
16503
|
+
value: string;
|
|
16504
|
+
type: "text";
|
|
16505
|
+
};
|
|
16472
16506
|
toolName: string;
|
|
16473
16507
|
toolCallId: string;
|
|
16474
|
-
result: JSONLiteral;
|
|
16475
16508
|
}, {
|
|
16476
16509
|
type: "tool-result";
|
|
16510
|
+
output: {
|
|
16511
|
+
value: string;
|
|
16512
|
+
type: "text";
|
|
16513
|
+
};
|
|
16477
16514
|
toolName: string;
|
|
16478
16515
|
toolCallId: string;
|
|
16479
|
-
result: JSONLiteral;
|
|
16480
16516
|
}>]>, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|
|
16481
16517
|
type: z.ZodLiteral<"function">;
|
|
16482
16518
|
function: z.ZodObject<{
|
|
@@ -16508,17 +16544,17 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
16508
16544
|
type: z.ZodLiteral<"tool-call">;
|
|
16509
16545
|
toolCallId: z.ZodString;
|
|
16510
16546
|
toolName: z.ZodString;
|
|
16511
|
-
|
|
16547
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
16512
16548
|
}, "strip", z.ZodTypeAny, {
|
|
16513
16549
|
type: "tool-call";
|
|
16550
|
+
input: JSONLiteral;
|
|
16514
16551
|
toolName: string;
|
|
16515
16552
|
toolCallId: string;
|
|
16516
|
-
args: JSONLiteral;
|
|
16517
16553
|
}, {
|
|
16518
16554
|
type: "tool-call";
|
|
16555
|
+
input: JSONLiteral;
|
|
16519
16556
|
toolName: string;
|
|
16520
16557
|
toolCallId: string;
|
|
16521
|
-
args: JSONLiteral;
|
|
16522
16558
|
}>, z.ZodEffects<z.ZodObject<{
|
|
16523
16559
|
type: z.ZodLiteral<"function">;
|
|
16524
16560
|
function: z.ZodObject<{
|
|
@@ -17781,7 +17817,7 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
17781
17817
|
}, z.ZodTypeAny, "passthrough">>;
|
|
17782
17818
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
17783
17819
|
type: "function";
|
|
17784
|
-
|
|
17820
|
+
inputSchema: {
|
|
17785
17821
|
_type?: unknown;
|
|
17786
17822
|
validate?: unknown;
|
|
17787
17823
|
jsonSchema?: Record<string, unknown> | undefined;
|
|
@@ -25393,17 +25429,20 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
25393
25429
|
type: "text";
|
|
25394
25430
|
} | {
|
|
25395
25431
|
type: "tool-call";
|
|
25432
|
+
input: JSONLiteral;
|
|
25396
25433
|
toolName: string;
|
|
25397
25434
|
toolCallId: string;
|
|
25398
|
-
args: JSONLiteral;
|
|
25399
25435
|
})[];
|
|
25400
25436
|
role: "assistant";
|
|
25401
25437
|
} | {
|
|
25402
25438
|
content: {
|
|
25403
25439
|
type: "tool-result";
|
|
25440
|
+
output: {
|
|
25441
|
+
value: string;
|
|
25442
|
+
type: "text";
|
|
25443
|
+
};
|
|
25404
25444
|
toolName: string;
|
|
25405
25445
|
toolCallId: string;
|
|
25406
|
-
result: JSONLiteral;
|
|
25407
25446
|
}[];
|
|
25408
25447
|
role: "tool";
|
|
25409
25448
|
}, z.objectInputType<{
|
|
@@ -25552,32 +25591,47 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
25552
25591
|
type: z.ZodLiteral<"tool-call">;
|
|
25553
25592
|
toolCallId: z.ZodString;
|
|
25554
25593
|
toolName: z.ZodString;
|
|
25555
|
-
|
|
25594
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
25556
25595
|
}, "strip", z.ZodTypeAny, {
|
|
25557
25596
|
type: "tool-call";
|
|
25597
|
+
input: JSONLiteral;
|
|
25558
25598
|
toolName: string;
|
|
25559
25599
|
toolCallId: string;
|
|
25560
|
-
args: JSONLiteral;
|
|
25561
25600
|
}, {
|
|
25562
25601
|
type: "tool-call";
|
|
25602
|
+
input: JSONLiteral;
|
|
25563
25603
|
toolName: string;
|
|
25564
25604
|
toolCallId: string;
|
|
25565
|
-
args: JSONLiteral;
|
|
25566
25605
|
}>, z.ZodObject<{
|
|
25567
25606
|
type: z.ZodLiteral<"tool-result">;
|
|
25568
25607
|
toolCallId: z.ZodString;
|
|
25569
25608
|
toolName: z.ZodString;
|
|
25570
|
-
|
|
25609
|
+
output: z.ZodObject<{
|
|
25610
|
+
type: z.ZodLiteral<"text">;
|
|
25611
|
+
value: z.ZodString;
|
|
25612
|
+
}, "strip", z.ZodTypeAny, {
|
|
25613
|
+
value: string;
|
|
25614
|
+
type: "text";
|
|
25615
|
+
}, {
|
|
25616
|
+
value: string;
|
|
25617
|
+
type: "text";
|
|
25618
|
+
}>;
|
|
25571
25619
|
}, "strip", z.ZodTypeAny, {
|
|
25572
25620
|
type: "tool-result";
|
|
25621
|
+
output: {
|
|
25622
|
+
value: string;
|
|
25623
|
+
type: "text";
|
|
25624
|
+
};
|
|
25573
25625
|
toolName: string;
|
|
25574
25626
|
toolCallId: string;
|
|
25575
|
-
result: JSONLiteral;
|
|
25576
25627
|
}, {
|
|
25577
25628
|
type: "tool-result";
|
|
25629
|
+
output: {
|
|
25630
|
+
value: string;
|
|
25631
|
+
type: "text";
|
|
25632
|
+
};
|
|
25578
25633
|
toolName: string;
|
|
25579
25634
|
toolCallId: string;
|
|
25580
|
-
result: JSONLiteral;
|
|
25581
25635
|
}>]>, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|
|
25582
25636
|
type: z.ZodLiteral<"function">;
|
|
25583
25637
|
function: z.ZodObject<{
|
|
@@ -25609,17 +25663,17 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
25609
25663
|
type: z.ZodLiteral<"tool-call">;
|
|
25610
25664
|
toolCallId: z.ZodString;
|
|
25611
25665
|
toolName: z.ZodString;
|
|
25612
|
-
|
|
25666
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
25613
25667
|
}, "strip", z.ZodTypeAny, {
|
|
25614
25668
|
type: "tool-call";
|
|
25669
|
+
input: JSONLiteral;
|
|
25615
25670
|
toolName: string;
|
|
25616
25671
|
toolCallId: string;
|
|
25617
|
-
args: JSONLiteral;
|
|
25618
25672
|
}, {
|
|
25619
25673
|
type: "tool-call";
|
|
25674
|
+
input: JSONLiteral;
|
|
25620
25675
|
toolName: string;
|
|
25621
25676
|
toolCallId: string;
|
|
25622
|
-
args: JSONLiteral;
|
|
25623
25677
|
}>, z.ZodEffects<z.ZodObject<{
|
|
25624
25678
|
type: z.ZodLiteral<"function">;
|
|
25625
25679
|
function: z.ZodObject<{
|
|
@@ -26882,7 +26936,7 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
26882
26936
|
}, z.ZodTypeAny, "passthrough">>;
|
|
26883
26937
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
26884
26938
|
type: "function";
|
|
26885
|
-
|
|
26939
|
+
inputSchema: {
|
|
26886
26940
|
_type?: unknown;
|
|
26887
26941
|
validate?: unknown;
|
|
26888
26942
|
jsonSchema?: Record<string, unknown> | undefined;
|
|
@@ -34494,17 +34548,20 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
34494
34548
|
type: "text";
|
|
34495
34549
|
} | {
|
|
34496
34550
|
type: "tool-call";
|
|
34551
|
+
input: JSONLiteral;
|
|
34497
34552
|
toolName: string;
|
|
34498
34553
|
toolCallId: string;
|
|
34499
|
-
args: JSONLiteral;
|
|
34500
34554
|
})[];
|
|
34501
34555
|
role: "assistant";
|
|
34502
34556
|
} | {
|
|
34503
34557
|
content: {
|
|
34504
34558
|
type: "tool-result";
|
|
34559
|
+
output: {
|
|
34560
|
+
value: string;
|
|
34561
|
+
type: "text";
|
|
34562
|
+
};
|
|
34505
34563
|
toolName: string;
|
|
34506
34564
|
toolCallId: string;
|
|
34507
|
-
result: JSONLiteral;
|
|
34508
34565
|
}[];
|
|
34509
34566
|
role: "tool";
|
|
34510
34567
|
}, z.objectInputType<{
|
|
@@ -34653,32 +34710,47 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
34653
34710
|
type: z.ZodLiteral<"tool-call">;
|
|
34654
34711
|
toolCallId: z.ZodString;
|
|
34655
34712
|
toolName: z.ZodString;
|
|
34656
|
-
|
|
34713
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
34657
34714
|
}, "strip", z.ZodTypeAny, {
|
|
34658
34715
|
type: "tool-call";
|
|
34716
|
+
input: JSONLiteral;
|
|
34659
34717
|
toolName: string;
|
|
34660
34718
|
toolCallId: string;
|
|
34661
|
-
args: JSONLiteral;
|
|
34662
34719
|
}, {
|
|
34663
34720
|
type: "tool-call";
|
|
34721
|
+
input: JSONLiteral;
|
|
34664
34722
|
toolName: string;
|
|
34665
34723
|
toolCallId: string;
|
|
34666
|
-
args: JSONLiteral;
|
|
34667
34724
|
}>, z.ZodObject<{
|
|
34668
34725
|
type: z.ZodLiteral<"tool-result">;
|
|
34669
34726
|
toolCallId: z.ZodString;
|
|
34670
34727
|
toolName: z.ZodString;
|
|
34671
|
-
|
|
34728
|
+
output: z.ZodObject<{
|
|
34729
|
+
type: z.ZodLiteral<"text">;
|
|
34730
|
+
value: z.ZodString;
|
|
34731
|
+
}, "strip", z.ZodTypeAny, {
|
|
34732
|
+
value: string;
|
|
34733
|
+
type: "text";
|
|
34734
|
+
}, {
|
|
34735
|
+
value: string;
|
|
34736
|
+
type: "text";
|
|
34737
|
+
}>;
|
|
34672
34738
|
}, "strip", z.ZodTypeAny, {
|
|
34673
34739
|
type: "tool-result";
|
|
34740
|
+
output: {
|
|
34741
|
+
value: string;
|
|
34742
|
+
type: "text";
|
|
34743
|
+
};
|
|
34674
34744
|
toolName: string;
|
|
34675
34745
|
toolCallId: string;
|
|
34676
|
-
result: JSONLiteral;
|
|
34677
34746
|
}, {
|
|
34678
34747
|
type: "tool-result";
|
|
34748
|
+
output: {
|
|
34749
|
+
value: string;
|
|
34750
|
+
type: "text";
|
|
34751
|
+
};
|
|
34679
34752
|
toolName: string;
|
|
34680
34753
|
toolCallId: string;
|
|
34681
|
-
result: JSONLiteral;
|
|
34682
34754
|
}>]>, z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
|
|
34683
34755
|
type: z.ZodLiteral<"function">;
|
|
34684
34756
|
function: z.ZodObject<{
|
|
@@ -34710,17 +34782,17 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
34710
34782
|
type: z.ZodLiteral<"tool-call">;
|
|
34711
34783
|
toolCallId: z.ZodString;
|
|
34712
34784
|
toolName: z.ZodString;
|
|
34713
|
-
|
|
34785
|
+
input: z.ZodType<JSONLiteral, z.ZodTypeDef, JSONLiteral>;
|
|
34714
34786
|
}, "strip", z.ZodTypeAny, {
|
|
34715
34787
|
type: "tool-call";
|
|
34788
|
+
input: JSONLiteral;
|
|
34716
34789
|
toolName: string;
|
|
34717
34790
|
toolCallId: string;
|
|
34718
|
-
args: JSONLiteral;
|
|
34719
34791
|
}, {
|
|
34720
34792
|
type: "tool-call";
|
|
34793
|
+
input: JSONLiteral;
|
|
34721
34794
|
toolName: string;
|
|
34722
34795
|
toolCallId: string;
|
|
34723
|
-
args: JSONLiteral;
|
|
34724
34796
|
}>, z.ZodEffects<z.ZodObject<{
|
|
34725
34797
|
type: z.ZodLiteral<"function">;
|
|
34726
34798
|
function: z.ZodObject<{
|
|
@@ -35983,7 +36055,7 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
35983
36055
|
}, z.ZodTypeAny, "passthrough">>;
|
|
35984
36056
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
35985
36057
|
type: "function";
|
|
35986
|
-
|
|
36058
|
+
inputSchema: {
|
|
35987
36059
|
_type?: unknown;
|
|
35988
36060
|
validate?: unknown;
|
|
35989
36061
|
jsonSchema?: Record<string, unknown> | undefined;
|