11 instantiations of TextReasoningContent
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
187Coalesce<TextReasoningContent>(contents, static text => new(text));
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (8)
158new() { Contents = [new TextReasoningContent("D")] }, 159new() { Contents = [new TextReasoningContent("E")] }, 160new() { Contents = [new TextReasoningContent("F")] }, 163new() { Contents = [new TextReasoningContent("I")] }, 164new() { Contents = [new TextReasoningContent("J")] }, 166new() { Contents = [new TextReasoningContent("L")] }, 169new() { Contents = [new TextReasoningContent("O")] }, 170new() { Contents = [new TextReasoningContent("P")] },
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 25TextReasoningContent c = new(null);
11 references to TextReasoningContent
Microsoft.Extensions.AI.Abstractions (5)
ChatCompletion\ChatResponseExtensions.cs (1)
187Coalesce<TextReasoningContent>(contents, static text => new(text));
Contents\AIContent.cs (1)
15[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)
177Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text); 179Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text); 181Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text); 183Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).Text);
Contents\TextReasoningContentTests.cs (2)
16TextReasoningContent c = new(text); 25TextReasoningContent c = new(null);