Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../..",
"baseUrl": "..",
"lib": ["ES2022", "DOM"],
"types": ["jest", "node"],
"paths": {
"@agentbase/plugin-sdk": ["../../../sdk/src/index.ts"]
}
},
"include": ["../src/**/*", "./**/*"],
"exclude": ["node_modules", "dist"]
}
42 changes: 42 additions & 0 deletions packages/plugins/official/user-feedback-collector/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "user-feedback-collector",
"version": "1.0.0",
"description": "Thumbs up/down rating after each AI response with optional comments. Aggregated quality scores per model and time period.",
"author": "Agentbase",
"license": "GPL-3.0",
"main": "dist/index.js",
"agentbase": {
"type": "plugin",
"apiVersion": "1"
},
"hooks": ["app:init"],
"filters": ["response:modify"],
"endpoints": [
{ "method": "POST", "path": "/feedback" },
{ "method": "GET", "path": "/feedback" },
{ "method": "GET", "path": "/stats" },
{ "method": "GET", "path": "/export" }
],
"settings": [
{
"key": "enableAutoPrompt",
"type": "boolean",
"label": "Automatically prompt for feedback after each response",
"default": true
},
{
"key": "feedbackTypes",
"type": "select",
"label": "Rating style",
"options": ["thumbs", "stars", "both"],
"default": "thumbs"
},
{
"key": "requireComment",
"type": "boolean",
"label": "Require a comment with every rating",
"default": false
}
],
"permissions": ["db:readwrite"]
}
35 changes: 35 additions & 0 deletions packages/plugins/official/user-feedback-collector/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@agentbase/plugin-user-feedback-collector",
"version": "1.0.0",
"description": "Thumbs up/down rating after each AI response with optional comments. Aggregated quality scores per model and time period.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "jest",
"lint": "eslint src --ext .ts"
},
"dependencies": {
"@agentbase/plugin-sdk": "workspace:*"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^20.0.0",
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.0"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"roots": [
"<rootDir>/__tests__"
],
"globals": {
"ts-jest": {
"tsconfig": "__tests__/tsconfig.json"
}
}
},
"license": "GPL-3.0"
}
Loading
Loading