4 writes to Usage
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.AzureAIInference (1)
52 references to Usage
Microsoft.Extensions.AI (5)
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.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);
202Assert.NotNull(response.Usage.AdditionalProperties);
471Assert.NotNull(response.Usage);
472Assert.Equal(42, response.Usage.InputTokenCount);
473Assert.Equal(15, response.Usage.OutputTokenCount);
474Assert.Equal(57, response.Usage.TotalTokenCount);
475Assert.NotNull(response.Usage.AdditionalProperties);
564Assert.NotNull(response.Usage);
565Assert.Equal(42, response.Usage.InputTokenCount);
566Assert.Equal(15, response.Usage.OutputTokenCount);
567Assert.Equal(57, response.Usage.TotalTokenCount);
568Assert.NotNull(response.Usage.AdditionalProperties);
915Assert.NotNull(response.Usage);
916Assert.Equal(42, response.Usage.InputTokenCount);
917Assert.Equal(15, response.Usage.OutputTokenCount);
918Assert.Equal(57, response.Usage.TotalTokenCount);
919Assert.NotNull(response.Usage.AdditionalProperties);
Microsoft.Extensions.AI.Tests (1)