@arizeai/phoenix-client
Version:
A client for the Phoenix API
48 lines • 1.62 kB
TypeScript
import z from "zod";
/**
* The schema for an Anthropic tool call, this is what a message that calls a tool looks like
*/
export declare const anthropicToolCallSchema: z.ZodObject<{
id: z.ZodString;
type: z.ZodLiteral<"tool_use">;
name: z.ZodString;
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
}, "strip", z.ZodTypeAny, {
type: "tool_use";
name: string;
id: string;
input: import("../../jsonLiteralSchema.js").JSONLiteral;
}, {
type: "tool_use";
name: string;
id: string;
input: import("../../jsonLiteralSchema.js").JSONLiteral;
}>;
/**
* The type of an Anthropic tool call
*/
export type AnthropicToolCall = z.infer<typeof anthropicToolCallSchema>;
/**
* The zod schema for multiple Anthropic tool calls
*/
export declare const anthropicToolCallsSchema: z.ZodArray<z.ZodObject<{
id: z.ZodString;
type: z.ZodLiteral<"tool_use">;
name: z.ZodString;
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
}, "strip", z.ZodTypeAny, {
type: "tool_use";
name: string;
id: string;
input: import("../../jsonLiteralSchema.js").JSONLiteral;
}, {
type: "tool_use";
name: string;
id: string;
input: import("../../jsonLiteralSchema.js").JSONLiteral;
}>, "many">;
/**
* Creates an empty Anthropic tool call with fields but no values filled in
*/
export declare function createAnthropicToolCall(): AnthropicToolCall;
//# sourceMappingURL=toolCallSchemas.d.ts.map