3 writes to ChoiceIndex
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
136ChoiceIndex = choiceIndex,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (2)
78update.ChoiceIndex = 42; 182ChoiceIndex = 42,
8 references to ChoiceIndex
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
337choice = update.ChoiceIndex; 339else if (choice != update.ChoiceIndex)
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (2)
87/// <param name="messages">The dictionary mapping <see cref="StreamingChatCompletionUpdate.ChoiceIndex"/> to the <see cref="ChatMessage"/> being built for that choice.</param> 97ChatMessage message = CollectionsMarshal.GetValueRefOrAddDefault(messages, update.ChoiceIndex, out _) ??=
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
26Assert.Equal(0, update.ChoiceIndex); 77Assert.Equal(0, update.ChoiceIndex); 79Assert.Equal(42, update.ChoiceIndex); 212Assert.Equal(42, result.ChoiceIndex);