3 writes to ChoiceIndex
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponse.cs (1)
147ChoiceIndex = choiceIndex,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatResponseUpdateTests.cs (2)
78update.ChoiceIndex = 42; 182ChoiceIndex = 42,
9 references to ChoiceIndex
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
369choice = update.ChoiceIndex; 371else if (choice != update.ChoiceIndex)
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponseUpdateExtensions.cs (3)
88/// <param name="messages">The dictionary mapping <see cref="ChatResponseUpdate.ChoiceIndex"/> to the <see cref="ChatMessage"/> being built for that choice.</param> 102if (!messages.TryGetValue(update.ChoiceIndex, out ChatMessage? message)) 104messages[update.ChoiceIndex] = message = new(default, new List<AIContent>());
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseUpdateTests.cs (4)
26Assert.Equal(0, update.ChoiceIndex); 77Assert.Equal(0, update.ChoiceIndex); 79Assert.Equal(42, update.ChoiceIndex); 212Assert.Equal(42, result.ChoiceIndex);