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

Method ResolveMemoryLocation

internal/api/core/memory.go:1580–1589  ·  view source on GitHub ↗

ResolveMemoryLocation resolves the storage location for a memory document.

(
	filename string,
	rawScope string,
	rawWorkspace string,
)

Source from the content-addressed store, hash-verified

1578
1579// ResolveMemoryLocation resolves the storage location for a memory document.
1580func (h *BaseHandlers) ResolveMemoryLocation(
1581 filename string,
1582 rawScope string,
1583 rawWorkspace string,
1584) (MemoryLocation, error) {
1585 return h.resolveMemoryLocation(context.Background(), filename, memorySelector{
1586 Scope: memcontract.Scope(rawScope),
1587 WorkspaceID: rawWorkspace,
1588 })
1589}
1590
1591func (h *BaseHandlers) resolveMemoryLocation(
1592 ctx context.Context,

Calls 2

resolveMemoryLocationMethod · 0.95
ScopeMethod · 0.80

Tested by 4

resolveMemoryLocationMethod · 0.64
resolveMemoryLocationMethod · 0.64
TestMemoryWrapperExportsFunction · 0.64