Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Consolidate ¶
Consolidate filters feedbacks with Rating < 0, deduplicates by exact Comment match, and returns a human-readable string of up to maxItems advice lines. Returns empty string if no negative feedbacks or maxItems <= 0.
func LoadAdvice ¶
LoadAdvice loads the consolidated advice for an agent role from the training directory. Returns empty string if the file does not exist or is empty.
func WriteAdvice ¶
WriteAdvice writes the consolidated advice for an agent role to the training directory.
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
FileStore implements Store on the local filesystem. Layout:
<dir>/<lowercase(agentRole)>.json — raw feedback entries <dir>/<lowercase(agentRole)>_advice.json — consolidated advice (written by Crew.Train)
func NewFileStore ¶
NewFileStore creates a FileStore rooted at dir. The directory is created on first write if it does not exist.
Click to show internal directories.
Click to hide internal directories.