29 writes to OutputTokenCount
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
68usage: new UsageDetails { InputTokenCount = 10, OutputTokenCount = 20, TotalTokenCount = 30 },
76usage: new UsageDetails { InputTokenCount = 20, OutputTokenCount = 30, TotalTokenCount = 50 },
160usage: new UsageDetails { InputTokenCount = 10, OutputTokenCount = 20, TotalTokenCount = 30 },
168usage: new UsageDetails { InputTokenCount = 20, OutputTokenCount = 30, TotalTokenCount = 50 },
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (10)
73 references to OutputTokenCount
Microsoft.Extensions.AI (7)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (3)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (11)
Microsoft.Extensions.AI.Integration.Tests (5)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (23)
OpenAIChatClientTests.cs (10)
172Assert.Equal(9, response.Usage.OutputTokenCount);
259Assert.Equal(9, usage.Details.OutputTokenCount);
846Assert.Equal(15, response.Usage.OutputTokenCount);
943Assert.Equal(15, response.Usage.OutputTokenCount);
1041Assert.Equal(15, response.Usage.OutputTokenCount);
1152Assert.Equal(16, response.Usage.OutputTokenCount);
1236Assert.Equal(16, response.Usage.OutputTokenCount);
1352Assert.Equal(16, usage.Details.OutputTokenCount);
1494Assert.Equal(15, response.Usage.OutputTokenCount);
1609Assert.Equal(56, response.Usage.OutputTokenCount);
OpenAIResponseClientTests.cs (11)
170Assert.Equal(10, response.Usage.OutputTokenCount);
350Assert.Equal(122, usage.Details.OutputTokenCount);
477Assert.Equal(25, usage.Details.OutputTokenCount);
592Assert.Equal(10, usage.Details.OutputTokenCount);
954Assert.Equal(10, response.Usage.OutputTokenCount);
1224Assert.Equal(72, response.Usage.OutputTokenCount);
1492Assert.Equal(123, response.Usage.OutputTokenCount);
1906Assert.Equal(149, response.Usage.OutputTokenCount);
2721Assert.Equal(50, response.Usage.OutputTokenCount);
4356Assert.Equal(25, response.Usage.OutputTokenCount);
4975Assert.Equal(0, usage.Details.OutputTokenCount);
Microsoft.Extensions.AI.Tests (6)