UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

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