1 implementation of IChatReducer
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
131
public sealed class TokenCountingChatReducer :
IChatReducer
4 references to IChatReducer
Microsoft.Extensions.AI.Integration.Tests (4)
ReducingChatClientTests.cs (4)
63
private readonly
IChatReducer
_reducer;
73
public ReducingChatClient(IChatClient innerClient,
IChatReducer
reducer, bool inPlace = false)
121
public static ChatClientBuilder UseChatReducer(this ChatClientBuilder builder,
IChatReducer
reducer, bool inPlace = false)
130
/// <summary>An <see cref="
IChatReducer
"/> that culls the oldest messages once a certain token threshold is reached.</summary>