UNPKG

zod-to-openai-tool

Version:

Easily create tools from zod schemas to use with OpenAI Assistants and Chat Completions

63 lines 1.47 kB
{ "name": "zod-to-openai-tool", "version": "0.13.1", "description": "Easily create tools from zod schemas to use with OpenAI Assistants and Chat Completions", "repository": "https://github.com/alvesvaren/zod-to-openai-tool", "type": "module", "files": [ "dist", "package.json" ], "exports": { ".": { "require": "./dist/index.cjs", "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "keywords": [ "zod", "openai", "openai-assistants", "openai-chat", "openai-tools", "openai-functions", "json-schema", "typescript" ], "author": "Alve Svarén", "license": "ISC", "devDependencies": { "@changesets/cli": "^2.27.7", "@types/node": "^22.0.0", "openai": "^4.53.2", "prettier": "^3.3.3", "tsup": "^8.2.3", "tsx": "^4.16.2", "typescript": "^5.5.4", "vitest": "^2.0.4", "zod": "^3.22.4" }, "dependencies": { "zod-to-json-schema": "^3.23.2" }, "peerDependencies": { "openai": "^4.53.0", "zod": "^3.23.3" }, "peerDependenciesMeta": { "openai": { "optional": true } }, "scripts": { "test": "vitest ; tsc", "dev": "tsx watch examples/basic-usage.ts", "build": "tsup", "release": "pnpm run build && pnpm changeset tag && git push --follow-tags", "prepublish": "pnpm run release" } }