[FEATURE] Restore FeedbackService: 👍/👎 and comments on sessions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the API definitions under proto/kagent/api/v1 and the Controller Service’s database and session handling paths; the issue names no implementation files or tests. Map how session authorization, deletion, and migrations work before estimating the service changes. Done means clients can create or update, list, and delete feedback scoped to sessions, with the proposed fields and behavior; the optional UI and tracing additions can be evaluated separately.
索引モデルが issue の本文から書いたものです。
説明
📋 Prerequisites
- I have searched the existing issues to avoid creating a duplicate
- By submitting this issue, you agree to follow our Code of Conduct
📝 Feature Summary
Restore a FeedbackService so clients can record 👍/👎 (plus an optional comment) on a session or a reply.
❓ Problem Statement / Motivation
#2685 ("remove unused legacy services") removed the Feedback service, its client, queries and the feedback table because nothing called it at the time. We now have a caller: a desktop client for kagent (gRPC-Web over the public API) that wants a "Report this chat 👍 / 👎" control, so the user can mark runs that went wrong (for example a turn that failed with 400 Bad Request: The prompt is too long … (ref: …)) and find them later to debug a prompt, a tool or a revision.
Today there is no supported place to store this in kagent (checked on main at eb42f64):
- No feedback/rating RPC in
proto/kagent/api/v1. Sessionhas no labels or metadata (labelsisreserved);nameis the only writable field.- The workarounds all abuse other APIs: prefixing the session name with an emoji, naming a checkpoint (which snapshots the sandbox), or keeping a map in a prompt-library ConfigMap.
Exporting a score to an external tracing backend (e.g. Langfuse) works, but it is an optional add-on: not every install has one, and kagent's own UI and API can't see it.
💡 Proposed Solution
A small kagent.api.v1.FeedbackService, scoped to sessions like checkpoints are:
service FeedbackService {
rpc CreateFeedback(CreateFeedbackRequest) returns (CreateFeedbackResponse); // upsert per (session, task, creator)
rpc ListFeedback(ListFeedbackRequest) returns (ListFeedbackResponse); // filter by session, agent, rating
rpc DeleteFeedback(DeleteFeedbackRequest) returns (DeleteFeedbackResponse);
}
message Feedback {
string id = 1;
string session_id = 2; // required
string task_id = 3; // optional: rate one reply; empty rates the whole session
string creator = 4; // output only, from the caller's identity
bool positive = 5;
string comment = 6; // bounded, e.g. 2000 chars
string issue_type = 7; // optional: instructions | factual | incomplete | tool | other
string prepared_revision = 8; // output only: the session's revision when rated
map<string, string> metadata = 9; // small, client-supplied (e.g. error ref)
google.protobuf.Timestamp created_at = 10;
google.protobuf.Timestamp updated_at = 11;
}
- Stored in a
feedbacktable keyed to the session (deleted with it), so it follows the same authz as the session: anyone who can read the session can rate it. - Upsert per (session, task, creator), so changing a rating replaces it instead of adding rows.
- Recording
prepared_revisionmakes it possible to compare an agent's revisions. - Optional and nice to have: emit the rating as a span event/attribute (
gen_ai.conversation.idis already on spans) so tracing backends can pick it up, and show the control in the kagent UI chat.
🔄 Alternatives Considered
- Session name prefix (
UpdateSessionName): only fits the thumb, no comment, clutters titles. - Checkpoint name (
CreateCheckpoint+UpdateCheckpointName): every rating snapshots the sandbox and shows up as a fork point. - Prompt-library ConfigMap (
UpdatePromptTemplate): works, but it's a misuse of the prompt library, capped at ~1 MiB, last-writer-wins, not queryable, and visible in the UI's Prompt Library. - External backend only (Langfuse scores via OTel): good for analysis, but optional and invisible to kagent.
🎯 Affected Service(s)
Controller Service (API + database); UI Service if the control is added to the chat.
📚 Additional Context
- Removal: #2685 (2026-09-03), which also dropped the table from clean-install migrations.
- The 0.x shape was
POST /api/feedbackwithis_positive,feedback_text,issue_typeandmessage_id; the proposal keeps that shape but keys it to the session/task model of 1.0.
🙋 Are you willing to contribute?
- I am willing to submit a PR for this feature
- 主要言語
- Go
- スター
- 4.5k
- フォーク
- 937
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 150
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kagent-dev/kagent のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3792 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kagent-dev/kagent#3790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
kagent-dev/kagent#3789 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
kagent-dev/kagent#3787 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Python memory summarization fails for Gemini models: the request has no model name対応中かも @BahaaMattar が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3710 ·
メンテナーはふだん 1 日以内に返信
kagent-dev/kagent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
Add CybeDefendオープン
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
slavakurilyak/awesome-ai-agents#1031 ·