change name

This commit is contained in:
Jicheng Lu 2024-05-13 11:51:33 -05:00
parent 3b68ef75b6
commit 8c2b77b45d
2 changed files with 3 additions and 3 deletions

View file

@ -17,6 +17,6 @@ public interface IConversationStateService
int activeRounds = -1, string valueType = StateDataType.String, string source = StateSource.User, bool readOnly = false);
void SaveStateByArgs(JsonDocument args);
bool RemoveState(string name);
void CleanStates(params string[] keepStates);
void CleanStates(params string[] excludedStates);
void Save();
}

View file

@ -270,7 +270,7 @@ public class ConversationStateService : IConversationStateService, IDisposable
return true;
}
public void CleanStates(params string[] keepStates)
public void CleanStates(params string[] excludedStates)
{
var routingCtx = _services.GetRequiredService<IRoutingContext>();
var curMsgId = routingCtx.MessageId;
@ -279,7 +279,7 @@ public class ConversationStateService : IConversationStateService, IDisposable
foreach (var key in _curStates.Keys)
{
// skip state
if (keepStates.Contains(key))
if (excludedStates.Contains(key))
{
continue;
}