13 references to new
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
196
static (contents, start, end) =>
new
(MergeText(contents, start, end)) { AdditionalProperties = contents[start].AdditionalProperties?.Clone() });
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (8)
272
new() { Contents = [new
TextReasoningContent
("D")] },
273
new() { Contents = [new
TextReasoningContent
("E")] },
274
new() { Contents = [new
TextReasoningContent
("F")] },
277
new() { Contents = [new
TextReasoningContent
("I")] },
278
new() { Contents = [new
TextReasoningContent
("J")] },
280
new() { Contents = [new
TextReasoningContent
("L")] },
283
new() { Contents = [new
TextReasoningContent
("O")] },
284
new() { Contents = [new
TextReasoningContent
("P")] },
Contents\TextReasoningContentTests.cs (2)
16
TextReasoningContent c =
new
(text);
26
TextReasoningContent c =
new
(null);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
166
message.Contents.Add(new
TextReasoningContent
(reasoningItem.GetSummaryText())
352
yield return CreateUpdate(new
TextReasoningContent
(delta));