UNPKG

@tanstack/ai

Version:

Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.

107 lines 2.67 kB
{ "name": "@tanstack/ai", "version": "0.31.0", "description": "Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.", "author": "Tanner Linsley", "license": "MIT", "homepage": "https://tanstack.com/ai", "repository": { "type": "git", "url": "git+https://github.com/TanStack/ai.git", "directory": "packages/ai" }, "bugs": { "url": "https://github.com/TanStack/ai/issues" }, "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" }, "type": "module", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "exports": { ".": { "types": "./dist/esm/index.d.ts", "import": "./dist/esm/index.js" }, "./client": { "types": "./dist/esm/client.d.ts", "import": "./dist/esm/client.js" }, "./adapters": { "types": "./dist/esm/activities/index.d.ts", "import": "./dist/esm/activities/index.js" }, "./middlewares": { "types": "./dist/esm/middlewares/index.d.ts", "import": "./dist/esm/middlewares/index.js" }, "./middlewares/otel": { "types": "./dist/esm/middlewares/otel.d.ts", "import": "./dist/esm/middlewares/otel.js" }, "./adapter-internals": { "types": "./dist/esm/adapter-internals.d.ts", "import": "./dist/esm/adapter-internals.js" } }, "sideEffects": false, "engines": { "node": ">=18" }, "files": [ "dist", "src", "skills" ], "keywords": [ "ai", "ai-sdk", "typescript", "tanstack", "llm", "generative-ai", "chat", "streaming", "tool-calling", "function-calling", "agents", "structured-outputs", "multimodal", "zod", "tanstack-intent" ], "dependencies": { "@ag-ui/core": "^0.0.52", "@standard-schema/spec": "^1.1.0", "partial-json": "^0.1.7", "@tanstack/ai-event-client": "0.6.2" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0" }, "peerDependenciesMeta": { "@opentelemetry/api": { "optional": true } }, "devDependencies": { "@opentelemetry/api": "^1.9.0", "@vitest/coverage-v8": "4.0.14", "arktype": "^2.1.28", "zod": "^4.2.0" }, "scripts": { "build": "vite build", "clean": "premove ./build ./dist", "lint:fix": "eslint ./src --fix", "test:build": "publint --strict", "test:coverage": "vitest run --coverage", "test:coverage:watch": "vitest --coverage --watch", "test:eslint": "eslint ./src", "test:lib": "vitest", "test:lib:dev": "pnpm test:lib --watch", "test:types": "tsc" } }