3 writes to ChoiceIndex
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
147ChoiceIndex = 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)
367choice = update.ChoiceIndex; 369else if (choice != update.ChoiceIndex)
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (2)
88/// <param name="messages">The dictionary mapping <see cref="StreamingChatCompletionUpdate.ChoiceIndex"/> to the <see cref="ChatMessage"/> being built for that choice.</param> 98ChatMessage 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);