UNPKG

ai-patterns

Version:

Production-ready TypeScript patterns to build solid and robust AI applications. Retry logic, circuit breakers, rate limiting, human-in-the-loop escalation, prompt versioning, response validation, context window management, and more—all with complete type

89 lines (88 loc) 2.19 kB
{ "name": "ai-patterns", "version": "1.3.3", "description": "Production-ready TypeScript patterns to build solid and robust AI applications. Retry logic, circuit breakers, rate limiting, human-in-the-loop escalation, prompt versioning, response validation, context window management, and more—all with complete type safety.", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc", "dev": "tsc --watch", "clean": "rm -rf dist", "lint": "eslint 'src/**/*.ts'", "lint:fix": "eslint 'src/**/*.ts' --fix", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "prepublishOnly": "npm run clean && npm run build" }, "keywords": [ "ai", "ai-patterns", "typescript", "vercel-ai-sdk", "openai", "anthropic", "claude", "gpt-4", "retry", "circuit-breaker", "rate-limiting", "human-in-the-loop", "workflows", "ai-workflows", "resilience", "error-handling", "type-safe", "production-ready", "robust", "solid", "idempotency", "timeout", "saga", "fan-out", "ai-agents", "llm", "ai-sdk", "ab-testing", "experimentation", "cost-tracking", "budget-control", "monitoring", "prompt-versioning", "response-validation", "context-window", "prompt-management", "validation", "context-management", "token-management", "ai-validation", "quality-assurance" ], "author": "Serge KOKOUA", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/kokouaserge/ai-patterns.git" }, "bugs": { "url": "https://github.com/kokouaserge/ai-patterns/issues" }, "homepage": "https://github.com/kokouaserge/ai-patterns#readme", "type": "commonjs", "engines": { "node": ">=18.0.0" }, "devDependencies": { "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "@vitest/coverage-v8": "^2.0.0", "eslint": "^8.57.0", "typescript": "^5.3.0", "vitest": "^2.0.0" }, "files": [ "dist", "README.md" ] }