com.sky.ondeviceagent / Runtime /AgentCore /Memory /IConversationStore.cs
Sky-Kim's picture
Initial commit
2e7837a
Raw
History Blame Contribute Delete
634 Bytes
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OnDeviceAgent.AgentCore
{
public interface IConversationStore
{
Task AppendAsync(ConversationTurn turn, CancellationToken ct);
Task<string> BuildSummaryAsync(CancellationToken ct);
Task CompactNowAsync(CancellationToken ct);
void ResetSession();
}
public sealed class ConversationTurn
{
public string TimestampUtc { get; set; }
public string User { get; set; }
public string Assistant { get; set; }
public List<string> Tools { get; set; }
}
}