added ask_stream endpoint #726
Open
Annotations
3 errors and 7 warnings
clients/dotnet/WebClient/MemoryWebClient.cs#L376
The body of 'MemoryWebClient.AskAsyncChunk(string, string?, MemoryFilter?, ICollection<MemoryFilter>?, double, IContext?, CancellationToken)' cannot be an iterator block because 'Task<IAsyncEnumerable<MemoryAnswer>>' is not an iterator interface type
|
clients/dotnet/WebClient/MemoryWebClient.cs#L376
The body of 'MemoryWebClient.AskAsyncChunk(string, string?, MemoryFilter?, ICollection<MemoryFilter>?, double, IContext?, CancellationToken)' cannot be an iterator block because 'Task<IAsyncEnumerable<MemoryAnswer>>' is not an iterator interface type
|
|
clients/dotnet/WebClient/MemoryWebClient.cs#L409
Forward the 'cancellationToken' parameter to the 'ReadLineAsync' method or pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2016)
|
clients/dotnet/WebClient/MemoryWebClient.cs#L411
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Microsoft.KernelMemory.MemoryWebClient.AskAsyncChunk(string, string?, Microsoft.KernelMemory.MemoryFilter?, System.Collections.Generic.ICollection<Microsoft.KernelMemory.MemoryFilter>?, double, Microsoft.KernelMemory.Context.IContext?, System.Threading.CancellationToken)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
clients/dotnet/WebClient/MemoryWebClient.cs#L14
Using directive is unnecessary. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005)
|
clients/dotnet/WebClient/MemoryWebClient.cs#L409
Forward the 'cancellationToken' parameter to the 'ReadLineAsync' method or pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2016)
|
clients/dotnet/WebClient/MemoryWebClient.cs#L411
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'Microsoft.KernelMemory.MemoryWebClient.AskAsyncChunk(string, string?, Microsoft.KernelMemory.MemoryFilter?, System.Collections.Generic.ICollection<Microsoft.KernelMemory.MemoryFilter>?, double, Microsoft.KernelMemory.Context.IContext?, System.Threading.CancellationToken)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
clients/dotnet/WebClient/MemoryWebClient.cs#L14
Using directive is unnecessary. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005)
|
|
This job failed
Loading