Documentation
¶
Overview ¶
Package feedback stores human ratings on AI task outputs. Records are appended to .cloop/feedback.jsonl as an append-only JSONL log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append writes a single feedback record to the JSONL log, creating the file and parent directory as needed.
Types ¶
type Record ¶
type Record struct {
TaskID int `json:"task_id"`
TaskTitle string `json:"task_title"`
Rating int `json:"rating"` // 1-5
Comment string `json:"comment,omitempty"`
Provider string `json:"provider,omitempty"`
Model string `json:"model,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
Record is a single human-rating entry for a task output.
Click to show internal directories.
Click to hide internal directories.