3 writes to AdditionalProperties
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
43AdditionalProperties = completion.AdditionalProperties;
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatCompletionTests.cs (2)
117completion.AdditionalProperties = additionalProps; 214AdditionalProperties = new() { ["key1"] = "value1", ["key2"] = 42 },
16 references to AdditionalProperties
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
43AdditionalProperties = completion.AdditionalProperties;
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatCompletion.cs (2)
115if (AdditionalProperties is not null || Usage is not null) 119AdditionalProperties = AdditionalProperties
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatCompletionTests.cs (5)
115Assert.Null(completion.AdditionalProperties); 118Assert.Same(additionalProps, completion.AdditionalProperties); 164Assert.NotNull(result.AdditionalProperties); 165Assert.Single(result.AdditionalProperties); 166Assert.True(result.AdditionalProperties.TryGetValue("key", out object? value));
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIChatClientTests.cs (8)
204Assert.NotNull(response.AdditionalProperties); 205Assert.Equal("fp_f85bea6784", response.AdditionalProperties[nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]); 477Assert.NotNull(response.AdditionalProperties); 478Assert.Equal("fp_f85bea6784", response.AdditionalProperties[nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]); 570Assert.NotNull(response.AdditionalProperties); 571Assert.Equal("fp_f85bea6784", response.AdditionalProperties[nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]); 921Assert.NotNull(response.AdditionalProperties); 922Assert.Equal("fp_f85bea6784", response.AdditionalProperties[nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]);