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

Method recordMemoryToolWrite

internal/daemon/native_tools.go:5376–5392  ·  view source on GitHub ↗
(
	scope toolspkg.Scope,
	req toolspkg.CallRequest,
	actorKind nativeMemoryActorKind,
)

Source from the content-addressed store, hash-verified

5374}
5375
5376func (n *daemonNativeTools) recordMemoryToolWrite(
5377 scope toolspkg.Scope,
5378 req toolspkg.CallRequest,
5379 actorKind nativeMemoryActorKind,
5380) {
5381 if n == nil || n.deps == nil || n.deps.MemoryToolWrites == nil {
5382 return
5383 }
5384 if actorKind != nativeMemoryActorKindRoot {
5385 return
5386 }
5387 sessionID := strings.TrimSpace(firstNonEmpty(req.SessionID, scope.SessionID))
5388 if sessionID == "" {
5389 return
5390 }
5391 n.deps.MemoryToolWrites.RecordToolWrite(sessionID, 0)
5392}
5393
5394func (n *daemonNativeTools) agentMemoryStoreFor(
5395 ctx context.Context,

Callers 2

memoryProposeMethod · 0.95
memoryNoteMethod · 0.95

Calls 2

firstNonEmptyFunction · 0.70
RecordToolWriteMethod · 0.65

Tested by

no test coverage detected