@arizeai/phoenix-client
Version:
A client for the Phoenix API
25 lines • 808 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.anthropicToolChoiceSchema = void 0;
const zod_1 = __importDefault(require("zod"));
/**
* Anthropic's tool choice schema
*
* @see https://docs.anthropic.com/en/api/messages
*/
exports.anthropicToolChoiceSchema = zod_1.default.discriminatedUnion("type", [
zod_1.default.object({
type: zod_1.default.literal("tool"),
name: zod_1.default.string(),
}),
zod_1.default.object({
type: zod_1.default.literal("auto"),
}),
zod_1.default.object({
type: zod_1.default.literal("any"),
}),
]);
//# sourceMappingURL=toolChoiceSchemas.js.map