UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

21 lines 528 B
import { schemaMatches } from "../../../utils/schemaMatches.js"; import z from "zod"; /** * Phoenix's tool choice schema */ export const phoenixToolChoiceSchema = schemaMatches()(z.union([ z.object({ type: z.literal("none"), }), z.object({ type: z.literal("zero_or_more"), }), z.object({ type: z.literal("one_or_more"), }), z.object({ type: z.literal("specific_function"), function_name: z.string(), }), ])); //# sourceMappingURL=toolChoiceSchemas.js.map