Documentation
¶
Index ¶
- Constants
- func FormatHelp() string
- func FormatMemory(entries []MemoryEntry, used, limit int) string
- func MemoryRelPath(root, file string) string
- func NewDreamSweep(cfg DreamSweepConfig, deps DreamSweepDeps) (capschedule.Runtime, error)
- func RenderMemory(entries []MemoryEntry) string
- func SummarizeSessionUserMessages(ctx context.Context, store agentkit.SessionStore, sessionID agentkit.SessionID, ...) (string, error)
- type Config
- type Deps
- type DreamSweep
- type DreamSweepConfig
- type DreamSweepDeps
- type MemoryEntry
- type MemoryStore
- type Service
Constants ¶
View Source
const ( // DefaultMemoryRoot is the workspace-relative directory for memory.md (tenant local root). DefaultMemoryRoot = "." DefaultMemoryFile = "memory.md" DefaultCharLimit = 2200 DefaultDreamsFile = "DREAMS.md" DefaultDreamingSubdir = "memory/dreaming" )
Variables ¶
This section is empty.
Functions ¶
func FormatMemory ¶
func FormatMemory(entries []MemoryEntry, used, limit int) string
FormatMemory renders memory entries for display.
func MemoryRelPath ¶
MemoryRelPath returns workspace-relative path to memory.md.
func NewDreamSweep ¶ added in v0.1.17
func NewDreamSweep(cfg DreamSweepConfig, deps DreamSweepDeps) (capschedule.Runtime, error)
NewDreamSweep registers learning/dream-sweep: background grounded dreaming sweeps.
func RenderMemory ¶
func RenderMemory(entries []MemoryEntry) string
Types ¶
type Deps ¶
type Deps struct {
Workspace workspace.Service `json:"workspace"`
SessionStore agentkit.SessionStore `json:"sessionStore"`
}
type DreamSweep ¶ added in v0.1.17
type DreamSweep struct {
// contains filtered or unexported fields
}
DreamSweep runs scheduled dreaming sweeps without agent turns.
func (*DreamSweep) Start ¶ added in v0.1.17
func (d *DreamSweep) Start(ctx context.Context, _ capschedule.SubmitFunc) error
type DreamSweepConfig ¶ added in v0.1.17
type DreamSweepConfig struct {
PollSeconds int `json:"pollSeconds"`
}
type DreamSweepDeps ¶ added in v0.1.17
type DreamSweepDeps struct {
Learning *Service `json:"learning"`
}
type MemoryEntry ¶
MemoryEntry is one §-delimited block in memory.md.
func ParseMemory ¶
func ParseMemory(raw string) []MemoryEntry
type MemoryStore ¶
MemoryStore reads and writes a single memory.md file with capacity limits.
func NewMemoryStore ¶
func NewMemoryStore(path string, charLimit int) *MemoryStore
func (*MemoryStore) Add ¶
func (s *MemoryStore) Add(content, source string) error
func (*MemoryStore) Load ¶
func (s *MemoryStore) Load() ([]MemoryEntry, error)
func (*MemoryStore) Remove ¶
func (s *MemoryStore) Remove(oldText string) error
func (*MemoryStore) Save ¶
func (s *MemoryStore) Save(entries []MemoryEntry) error
func (*MemoryStore) TotalChars ¶
func (s *MemoryStore) TotalChars(entries []MemoryEntry) int
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service owns tenant personal memory, dreaming, workshop, and /learn commands.
func (*Service) LoadEntries ¶
LoadEntries reads personal memory for the current tenant workspace.
Click to show internal directories.
Click to hide internal directories.