7 writes to Usage
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (1)
55 references to Usage
Microsoft.Extensions.AI (6)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference.Tests (8)
Microsoft.Extensions.AI.Integration.Tests (5)
Microsoft.Extensions.AI.Ollama.Tests (4)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (20)
OpenAIChatClientTests.cs (20)
198Assert.NotNull(response.Usage);
199Assert.Equal(8, response.Usage.InputTokenCount);
200Assert.Equal(9, response.Usage.OutputTokenCount);
201Assert.Equal(17, response.Usage.TotalTokenCount);
208}, response.Usage.AdditionalCounts);
545Assert.NotNull(response.Usage);
546Assert.Equal(42, response.Usage.InputTokenCount);
547Assert.Equal(15, response.Usage.OutputTokenCount);
548Assert.Equal(57, response.Usage.TotalTokenCount);
555}, response.Usage.AdditionalCounts);
644Assert.NotNull(response.Usage);
645Assert.Equal(42, response.Usage.InputTokenCount);
646Assert.Equal(15, response.Usage.OutputTokenCount);
647Assert.Equal(57, response.Usage.TotalTokenCount);
654}, response.Usage.AdditionalCounts);
1015Assert.NotNull(response.Usage);
1016Assert.Equal(42, response.Usage.InputTokenCount);
1017Assert.Equal(15, response.Usage.OutputTokenCount);
1018Assert.Equal(57, response.Usage.TotalTokenCount);
1025}, response.Usage.AdditionalCounts);
Microsoft.Extensions.AI.Tests (2)