13 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)
273new() { Contents = [new TextReasoningContent("D")] }, 274new() { Contents = [new TextReasoningContent("E")] }, 275new() { Contents = [new TextReasoningContent("F")] }, 278new() { Contents = [new TextReasoningContent("I")] }, 279new() { Contents = [new TextReasoningContent("J")] }, 281new() { Contents = [new TextReasoningContent("L")] }, 284new() { Contents = [new TextReasoningContent("O")] }, 285new() { Contents = [new TextReasoningContent("P")] },
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 25TextReasoningContent c = new(null);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIResponsesChatClient.cs (2)
153message.Contents.Add(new TextReasoningContent(summary) { RawRepresentation = outputItem }); 333yield return CreateUpdate(new TextReasoningContent(delta));
14 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)
292Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text); 294Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text); 296Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text); 298Assert.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)
629case TextReasoningContent reasoningContent:
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
327var reasoning = Assert.IsType<TextReasoningContent>(updates[i].Contents.Single());