@arizeai/phoenix-client
Version:
A client for the Phoenix API
27 lines • 948 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.phoenixToolChoiceSchema = void 0;
const schemaMatches_1 = require("../../../utils/schemaMatches");
const zod_1 = __importDefault(require("zod"));
/**
* Phoenix's tool choice schema
*/
exports.phoenixToolChoiceSchema = (0, schemaMatches_1.schemaMatches)()(zod_1.default.union([
zod_1.default.object({
type: zod_1.default.literal("none"),
}),
zod_1.default.object({
type: zod_1.default.literal("zero_or_more"),
}),
zod_1.default.object({
type: zod_1.default.literal("one_or_more"),
}),
zod_1.default.object({
type: zod_1.default.literal("specific_function"),
function_name: zod_1.default.string(),
}),
]));
//# sourceMappingURL=toolChoiceSchemas.js.map