( scope toolspkg.Scope, req toolspkg.CallRequest, actorKind nativeMemoryActorKind, )
| 5374 | } |
| 5375 | |
| 5376 | func (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 | |
| 5394 | func (n *daemonNativeTools) agentMemoryStoreFor( |
| 5395 | ctx context.Context, |
no test coverage detected