13 instantiations of TextReasoningContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
196static (contents, start, end) => new(MergeText(contents, start, end)) { AdditionalProperties = contents[start].AdditionalProperties?.Clone() });
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (8)
272new() { Contents = [new TextReasoningContent("D")] }, 273new() { Contents = [new TextReasoningContent("E")] }, 274new() { Contents = [new TextReasoningContent("F")] }, 277new() { Contents = [new TextReasoningContent("I")] }, 278new() { Contents = [new TextReasoningContent("J")] }, 280new() { Contents = [new TextReasoningContent("L")] }, 283new() { Contents = [new TextReasoningContent("O")] }, 284new() { Contents = [new TextReasoningContent("P")] },
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 26TextReasoningContent c = new(null);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
166message.Contents.Add(new TextReasoningContent(reasoningItem.GetSummaryText()) 352yield return CreateUpdate(new TextReasoningContent(delta));
16 references to TextReasoningContent
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
271case TextReasoningContent trc when !string.IsNullOrWhiteSpace(trc.Text):
Microsoft.Extensions.AI.Abstractions (6)
ChatCompletion\ChatResponseExtensions.cs (1)
192Coalesce<TextReasoningContent>(
Contents\AIContent.cs (1)
18[JsonDerivedType(typeof(TextReasoningContent), typeDiscriminator: "reasoning")]
Contents\TextReasoningContent.cs (4)
13/// <see cref="TextReasoningContent"/> is distinct from <see cref="TextContent"/>. <see cref="TextReasoningContent"/> 23/// Initializes a new instance of the <see cref="TextReasoningContent"/> class. 46/// sent back to the provider and not displayed to the user. It's possible for a <see cref="TextReasoningContent"/> to contain
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (4)
291Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text); 293Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text); 295Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text); 297Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).Text);
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 26TextReasoningContent c = new(null);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
647case TextReasoningContent reasoningContent:
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
327var reasoning = Assert.IsType<TextReasoningContent>(updates[i].Contents.Single());