5 writes to CompletionId
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
37CompletionId = completion.CompletionId;
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
91completion.CompletionId ??= update.CompletionId;
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatCompletionTests.cs (2)
90completion.CompletionId = "id"; 210CompletionId = "12345",
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
135CompletionId = response.Id,
15 references to CompletionId
Microsoft.Extensions.AI (3)
ChatCompletion\ChatCompletion{T}.cs (1)
37CompletionId = completion.CompletionId;
ChatCompletion\OpenTelemetryChatClient.cs (2)
359if (!string.IsNullOrWhiteSpace(completion.CompletionId)) 361_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Id, completion.CompletionId);
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
144CompletionId = CompletionId,
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatCompletionTests.cs (3)
89Assert.Null(completion.CompletionId); 91Assert.Equal("id", completion.CompletionId); 158Assert.Equal("id", result.CompletionId);
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (1)
64Assert.Equal("12345", completion.CompletionId);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
147Assert.Equal("chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI", response.CompletionId); 409Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId);
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
190Assert.Equal("chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI", response.CompletionId); 463Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId); 556Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId); 907Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
63Assert.Equal(expectedCompletion.CompletionId, response.CompletionId);