UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

21 lines 883 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.phoenixResponseFormatSchema = void 0; const schemaMatches_1 = require("../../../utils/schemaMatches"); const zod_1 = __importDefault(require("zod")); /** * Phoenix response format schema */ exports.phoenixResponseFormatSchema = (0, schemaMatches_1.schemaMatches)()(zod_1.default.object({ type: zod_1.default.literal("json_schema"), json_schema: zod_1.default.object({ name: zod_1.default.string(), description: zod_1.default.string().optional(), schema: zod_1.default.record(zod_1.default.unknown()).optional(), strict: zod_1.default.boolean().optional(), }), })); //# sourceMappingURL=responseFormatSchema.js.map