Documentation
¶
Overview ¶
Package memory provides filesystem-backed persistent agent memory outside the chat workspace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeScope ¶
SanitizeScope maps a raw scope label to a safe directory name.
Types ¶
type FileStore ¶
type FileStore struct {
// Root is the absolute base directory for all scopes.
Root string
// DefaultFile is used when file is empty.
DefaultFile string
// MaxFileBytes caps write size.
MaxFileBytes int
}
FileStore stores memory files under a single root directory.
func NewFileStore ¶
NewFileStore creates a file-backed memory store.
func OpenFromConfig ¶
OpenFromConfig opens the memory store under <workspace-parent>/agent-memories.
Click to show internal directories.
Click to hide internal directories.