6 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)
137CompletionId = response.Id,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAISerializationTests.cs (1)
454CompletionId = "chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI",
16 references to CompletionId
Microsoft.Extensions.AI (3)
ChatCompletion\ChatCompletion{T}.cs (1)
37CompletionId = completion.CompletionId;
ChatCompletion\OpenTelemetryChatClient.cs (2)
373if (!string.IsNullOrWhiteSpace(completion.CompletionId)) 375_ = 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)
160Assert.Equal("chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI", response.CompletionId); 658Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
57id: chatCompletion.CompletionId,
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
190Assert.Equal("chatcmpl-ADx3PvAnCwJg0woha4pYsBTi3ZpOI", response.CompletionId); 537Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId); 636Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId); 1007Assert.Equal("chatcmpl-ADyV17bXeSm5rzUx3n46O7m3M0o3P", response.CompletionId);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
63Assert.Equal(expectedCompletion.CompletionId, response.CompletionId);