Table of Contents

Method RedactMessagesAsync

Namespace
Oscova.Agents.Secrets
Assembly
Oscova.Agents.dll

RedactMessagesAsync(IReadOnlyList<ChatMessage>, string?, CancellationToken)

Returns redacted copies of chat messages without mutating the input messages.

Task<IReadOnlyList<ChatMessage>> RedactMessagesAsync(IReadOnlyList<ChatMessage> messages, string? userId = null, CancellationToken ct = default)

Parameters

messages IReadOnlyList<ChatMessage>
userId string?
ct CancellationToken

Returns

Task<IReadOnlyList<ChatMessage>>