@arizeai/phoenix-client
Version:
A client for the Phoenix API
19 lines • 431 B
JavaScript
import z from "zod";
/**
* Anthropic's tool choice schema
*
* @see https://docs.anthropic.com/en/api/messages
*/
export const anthropicToolChoiceSchema = z.discriminatedUnion("type", [
z.object({
type: z.literal("tool"),
name: z.string(),
}),
z.object({
type: z.literal("auto"),
}),
z.object({
type: z.literal("any"),
}),
]);
//# sourceMappingURL=toolChoiceSchemas.js.map