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

Function ResolveMemoryWriteScope

internal/api/core/memory.go:2481–2483  ·  view source on GitHub ↗

ResolveMemoryWriteScope validates a write request and infers its target scope.

(req contract.MemoryWriteRequest)

Source from the content-addressed store, hash-verified

2479
2480// ResolveMemoryWriteScope validates a write request and infers its target scope.
2481func ResolveMemoryWriteScope(req contract.MemoryWriteRequest) (memcontract.Scope, string, error) {
2482 return resolveMemoryWriteScope(req)
2483}
2484
2485func resolveMemoryWriteScope(req contract.MemoryWriteRequest) (memcontract.Scope, string, error) {
2486 content := strings.TrimSpace(req.Content)

Calls 1

resolveMemoryWriteScopeFunction · 0.70

Tested by 4

resolveMemoryWriteScopeFunction · 0.74
resolveMemoryWriteScopeFunction · 0.74
TestMemoryWrapperExportsFunction · 0.74