| 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; } |
| } |
| } |
|
|