Variable anthropicToolChoiceToOpenAIConst
anthropicToolChoiceToOpenAI: ZodPipe<
ZodDiscriminatedUnion<
[
ZodObject<{ name: ZodString; type: ZodLiteral<"tool"> }, $strip>,
ZodObject<{ type: ZodLiteral<"auto"> }, $strip>,
ZodObject<{ type: ZodLiteral<"any"> }, $strip>,
],
"type",
>,
ZodTransform<
| "none"
| "auto"
| "required"
| { function: { name: string }; type: "function" },
{ name: string; type: "tool" } | { type: "auto" } | { type: "any" },
>,
> = ...
Parse incoming object as an Anthropic tool choice and immediately convert to OpenAI format