2 writes to ChoiceIndex
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (2)
78
update.
ChoiceIndex
= 42;
182
ChoiceIndex
= 42,
8 references to ChoiceIndex
Microsoft.Extensions.AI (4)
ChatCompletion\CachingChatClient.cs (2)
96
if (update.
ChoiceIndex
!= 0 ||
108
if (next.
ChoiceIndex
!= 0 ||
ChatCompletion\OpenTelemetryChatClient.cs (2)
210
if (!choices.TryGetValue(update.
ChoiceIndex
, out var choiceContents))
212
choices[update.
ChoiceIndex
] = choiceContents = [];
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
26
Assert.Equal(0, update.
ChoiceIndex
);
77
Assert.Equal(0, update.
ChoiceIndex
);
79
Assert.Equal(42, update.
ChoiceIndex
);
212
Assert.Equal(42, result.
ChoiceIndex
);