MCPcopy Create free account
hub / github.com/compozy/agh / ForWorkspace

Method ForWorkspace

internal/memory/store.go:192–197  ·  view source on GitHub ↗

ForWorkspace returns a clone of the store bound to the supplied workspace root.

(workspaceRoot string)

Source from the content-addressed store, hash-verified

190
191// ForWorkspace returns a clone of the store bound to the supplied workspace root.
192func (s *Store) ForWorkspace(workspaceRoot string) *Store {
193 clone := *s
194 clone.workspaceRoot = canonicalWorkspaceRoot(workspaceRoot)
195 clone.workspaceDir = workspaceMemoryDir(clone.workspaceRoot)
196 return &clone
197}
198
199// ForAgent returns a clone of the store bound to one agent memory tier.
200func (s *Store) ForAgent(workspaceID string, agentName string, tier memcontract.AgentTier) *Store {

Calls 2

canonicalWorkspaceRootFunction · 0.85
workspaceMemoryDirFunction · 0.85