12 instantiations of TextReasoningContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
196new(MergeText(contents, start, end))
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (8)
217new() { Contents = [new TextReasoningContent("D")] }, 218new() { Contents = [new TextReasoningContent("E")] }, 219new() { Contents = [new TextReasoningContent("F")] }, 222new() { Contents = [new TextReasoningContent("I")] }, 223new() { Contents = [new TextReasoningContent("J")] }, 225new() { Contents = [new TextReasoningContent("L")] }, 228new() { Contents = [new TextReasoningContent("O")] }, 229new() { Contents = [new TextReasoningContent("P")] },
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 25TextReasoningContent c = new(null);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
152message.Contents.Add(new TextReasoningContent(summary) { RawRepresentation = outputItem });
12 references to TextReasoningContent
Microsoft.Extensions.AI.Abstractions (5)
ChatCompletion\ChatResponseExtensions.cs (1)
195Coalesce<TextReasoningContent>(contents, mergeSingle: false, static (contents, start, end) =>
Contents\AIContent.cs (1)
18[JsonDerivedType(typeof(TextReasoningContent), typeDiscriminator: "reasoning")]
Contents\TextReasoningContent.cs (3)
13/// <see cref="TextReasoningContent"/> is distinct from <see cref="TextContent"/>. <see cref="TextReasoningContent"/> 23/// Initializes a new instance of the <see cref="TextReasoningContent"/> class.
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (4)
236Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text); 238Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text); 240Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text); 242Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).Text);
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 25TextReasoningContent c = new(null);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
570case TextReasoningContent reasoningContent: