27 instantiations of TextReasoningContent
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (20)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (16)
607new() { Contents = [new TextReasoningContent("D")] },
608new() { Contents = [new TextReasoningContent("E")] },
609new() { Contents = [new TextReasoningContent("F")] },
612new() { Contents = [new TextReasoningContent("I")] },
613new() { Contents = [new TextReasoningContent("J")] },
615new() { Contents = [new TextReasoningContent("L")] },
618new() { Contents = [new TextReasoningContent("O")] },
619new() { Contents = [new TextReasoningContent("P")] },
642new() { Contents = [new TextReasoningContent("A") { ProtectedData = "1" }] },
643new() { Contents = [new TextReasoningContent("B") { ProtectedData = "2" }] },
644new() { Contents = [new TextReasoningContent("C")] },
645new() { Contents = [new TextReasoningContent("D")] },
646new() { Contents = [new TextReasoningContent("E") { ProtectedData = "3" }] },
647new() { Contents = [new TextReasoningContent("F") { ProtectedData = "4" }] },
648new() { Contents = [new TextReasoningContent("G")] },
649new() { Contents = [new TextReasoningContent("H")] },
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.Tests (3)
33 references to TextReasoningContent
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (9)
Microsoft.Extensions.AI.Abstractions.Tests (19)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (14)
626Assert.Equal("DEF", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text);
628Assert.Equal("IJ", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text);
630Assert.Equal("L", Assert.IsType<TextReasoningContent>(message.Contents[5]).Text);
632Assert.Equal("OP", Assert.IsType<TextReasoningContent>(message.Contents[7]).Text);
656Assert.Equal("A", Assert.IsType<TextReasoningContent>(message.Contents[0]).Text);
657Assert.Equal("1", ((TextReasoningContent)message.Contents[0]).ProtectedData);
659Assert.Equal("B", Assert.IsType<TextReasoningContent>(message.Contents[1]).Text);
660Assert.Equal("2", ((TextReasoningContent)message.Contents[1]).ProtectedData);
662Assert.Equal("CDE", Assert.IsType<TextReasoningContent>(message.Contents[2]).Text);
663Assert.Equal("3", ((TextReasoningContent)message.Contents[2]).ProtectedData);
665Assert.Equal("F", Assert.IsType<TextReasoningContent>(message.Contents[3]).Text);
666Assert.Equal("4", ((TextReasoningContent)message.Contents[3]).ProtectedData);
668Assert.Equal("GH", Assert.IsType<TextReasoningContent>(message.Contents[4]).Text);
669Assert.Null(((TextReasoningContent)message.Contents[4]).ProtectedData);
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (2)