@arizeai/phoenix-client
Version:
A client for the Phoenix API
28 lines • 770 B
TypeScript
import z from "zod";
/**
* OpenAI's tool choice schema
*
* @see https://platform.openAI.com/docs/api-reference/chat/create#chat-create-tool_choice
*/
export declare const openAIToolChoiceSchema: z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
type: z.ZodLiteral<"function">;
function: z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
};
type: "function";
}, {
function: {
name: string;
};
type: "function";
}>]>;
export type OpenaiToolChoice = z.infer<typeof openAIToolChoiceSchema>;
//# sourceMappingURL=toolChoiceSchemas.d.ts.map