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