diff --git a/src/agent/agent-invocation.repository.ts b/src/agent/agent-invocation.repository.ts index 0c8179c..fd4fb6c 100644 --- a/src/agent/agent-invocation.repository.ts +++ b/src/agent/agent-invocation.repository.ts @@ -139,7 +139,15 @@ export class AgentInvocationRepository { private sanitizeInput( input: CreateAgentInvocationRecordInput, ): CreateAgentInvocationRecordInput { - return redactSensitive(input); + const redacted = redactSensitive({ + ...input, + tokenEstimate: undefined, + }); + + return { + ...redacted, + tokenEstimate: input.tokenEstimate, + }; } private inputDigest(