ISessionTrimmingService
Wisej.AI.Services.ISessionTrimmingService
Last updated
Wisej.AI.Services.ISessionTrimmingService
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Provides functionality to trim messages in a session to reduce the number of tokens.
public interface ISessionTrimmingServicePublic Interface ISessionTrimmingServiceSingle: Gets or sets the percentage of messages to remove (between 0.1 and 0.9).
TrimmingStrategy: Gets or sets the strategy for handling context overflow.
Trims the messages in the session to reduce the number of tokens.
messages
Message collection to be trimmed. If null, it uses the messages in the session .
Returns: Task.
Provides functionality to trim messages in a session to reduce the number of tokens.
Last updated
