Fixed some warnings

This commit is contained in:
2026-04-04 05:01:51 +02:00
parent 6d6b2c1166
commit 3138436965
12 changed files with 129 additions and 131 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
using System.Runtime.CompilerServices;
using Luna.Agents.Abstractions;
using Luna.Configuration;
using Luna.Providers.Abstractions;
@@ -38,7 +39,9 @@ public class LibrarianAgent(
.Where(m => m.Role != ChatRole.System);
}
public async IAsyncEnumerable<ChatResponseUpdate> ProcessStreamingAsync(IReadOnlyList<ChatMessage> messages, CancellationToken ct = default)
public async IAsyncEnumerable<ChatResponseUpdate> ProcessStreamingAsync(
IReadOnlyList<ChatMessage> messages,
[EnumeratorCancellation] CancellationToken ct = default)
{
var chatOptions = new ChatOptions
{