mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-03 23:47:27 +01:00
The feedback loop between a chat and the people improving it, as a package: - Under every answer a thumb up and a thumb down (`onFeedback` on ChatThread, or `messageId` + `onFeedback` on AnswerActions). A thumb down opens a sheet that asks why — one tap on a reason from FEEDBACK_REASONS, words optional, then Send — so the product learns what the person wanted, not only that it failed. Nothing is sent until they send it. Every label is translatable. - The nightly judge's contract in core: CHAT_REVIEW_INSTRUCTION, the ChatTranscript a product exports (turns with the assistant's steps, plus the thumbs), reviewPrompt(scope, transcript), and parseChatReview reading the verdicts back strictly (score 1–5, gaps from REVIEW_GAPS — dead_end, wrong_tool, no_web, misread, vague, no_next_step… — and one concrete fix). Loki runs the judge and files each gap into its feedback inbox. - Icon-only actions are a full 44px wide, not only tall. Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE Co-authored-by: Claude <noreply@anthropic.com>
1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
{"version":3,"file":"AnswerActions.d.ts","sourceRoot":"","sources":["../../src/react/AnswerActions.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAchE,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAK1F,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,iFAAiF;IACjF,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CA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