Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) ApplyDecision(ctx context.Context, decision memcontract.Decision) error
- func (a *Adapter) EnsureDirs() error
- func (a *Adapter) ForAgent(workspaceID string, agentName string, tier memcontract.AgentTier) local.Backend
- func (a *Adapter) ForWorkspace(workspaceRoot string) local.Backend
- func (a *Adapter) List(scope memcontract.Scope) ([]memcontract.Header, error)
- func (a *Adapter) LoadPromptIndex(scope memcontract.Scope) (content string, truncated bool, err error)
- func (a *Adapter) Recall(ctx context.Context, query memcontract.Query, opts memcontract.RecallOptions) (memcontract.Packaged, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter exposes memory.Store through the local provider's contract-typed backend.
func (*Adapter) ApplyDecision ¶
ApplyDecision persists and applies a controller decision through Store.
func (*Adapter) EnsureDirs ¶
EnsureDirs creates the underlying memory directories.
func (*Adapter) ForAgent ¶
func (a *Adapter) ForAgent( workspaceID string, agentName string, tier memcontract.AgentTier, ) local.Backend
ForAgent returns a backend bound to the requested agent memory tier.
func (*Adapter) ForWorkspace ¶
ForWorkspace returns a backend bound to the requested workspace memory root.
func (*Adapter) List ¶
func (a *Adapter) List(scope memcontract.Scope) ([]memcontract.Header, error)
List returns memory headers for one scope.
func (*Adapter) LoadPromptIndex ¶
func (a *Adapter) LoadPromptIndex( scope memcontract.Scope, ) (content string, truncated bool, err error)
LoadPromptIndex returns the prompt-safe MEMORY.md content for a scope.
func (*Adapter) Recall ¶
func (a *Adapter) Recall( ctx context.Context, query memcontract.Query, opts memcontract.RecallOptions, ) (memcontract.Packaged, error)
Recall delegates to Store.Recall.
Click to show internal directories.
Click to hide internal directories.