9 writes to FinishReason
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
146FinishReason = FinishReason,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (2)
82update.FinishReason = ChatFinishReason.ContentFilter; 180FinishReason = ChatFinishReason.ContentFilter,
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
174FinishReason = finishReason, 235FinishReason = finishReason,
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
157FinishReason = ToFinishReason(chunk),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (2)
230FinishReason = finishReason, 324FinishReason = finishReason,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
75FinishReason = ChatFinishReason.Stop,
13 references to FinishReason
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
93completion.FinishReason ??= update.FinishReason;
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatCompletionTests.cs (3)
224Assert.Equal(ChatFinishReason.ContentFilter, update0.FinishReason); 274Assert.Equal(ChatFinishReason.ContentFilter, update0.FinishReason); 285Assert.Equal(ChatFinishReason.ContentFilter, update1.FinishReason);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
25Assert.Null(update.FinishReason); 81Assert.Null(update.FinishReason); 83Assert.Equal(ChatFinishReason.ContentFilter, update.FinishReason); 211Assert.Equal(ChatFinishReason.ContentFilter, result.FinishReason);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
222Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 620Assert.Equal(i < 7 ? null : ChatFinishReason.ToolCalls, updates[i].FinishReason);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
192Assert.Equal(i < updates.Count - 1 ? null : ChatFinishReason.Length, updates[i].FinishReason);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
271Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 773Assert.Equal(i < 7 ? null : ChatFinishReason.ToolCalls, updates[i].FinishReason);