28 instantiations of TextReasoningContent
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (20)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (16)
692new() { Contents = [new TextReasoningContent("D")] },
693new() { Contents = [new TextReasoningContent("E")] },
694new() { Contents = [new TextReasoningContent("F")] },
697new() { Contents = [new TextReasoningContent("I")] },
698new() { Contents = [new TextReasoningContent("J")] },
700new() { Contents = [new TextReasoningContent("L")] },
703new() { Contents = [new TextReasoningContent("O")] },
704new() { Contents = [new TextReasoningContent("P")] },
727new() { Contents = [new TextReasoningContent("A") { ProtectedData = "1" }] },
728new() { Contents = [new TextReasoningContent("B") { ProtectedData = "2" }] },
729new() { Contents = [new TextReasoningContent("C")] },
730new() { Contents = [new TextReasoningContent("D")] },
731new() { Contents = [new TextReasoningContent("E") { ProtectedData = "3" }] },
732new() { Contents = [new TextReasoningContent("F") { ProtectedData = "4" }] },
733new() { Contents = [new TextReasoningContent("G")] },
734new() { Contents = [new TextReasoningContent("H")] },
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (3)
Microsoft.Extensions.AI.Tests (3)
37 references to TextReasoningContent
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (9)
Microsoft.Extensions.AI.Abstractions.Tests (19)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (14)
711Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text);
713Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text);
715Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text);
717Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).Text);
741Assert.Equal("A", Assert.IsType<TextReasoningContent>(message.Contents[0]).Text);
742Assert.Equal("1", ((TextReasoningContent)message.Contents[0]).ProtectedData);
744Assert.Equal("B", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text);
745Assert.Equal("2", ((TextReasoningContent)message.Contents[1]).ProtectedData);
747Assert.Equal("CDE", Assert.IsType<TextReasoningContent>(message.Contents[2]).Text);
748Assert.Equal("3", ((TextReasoningContent)message.Contents[2]).ProtectedData);
750Assert.Equal("F", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text);
751Assert.Equal("4", ((TextReasoningContent)message.Contents[3]).ProtectedData);
753Assert.Equal("GH", Assert.IsType<TextReasoningContent>(message.Contents[4]).Text);
754Assert.Null(((TextReasoningContent)message.Contents[4]).ProtectedData);
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (6)