97 references to TextContent
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Abstractions.Tests (40)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (10)
255new() { Contents = [new TextContent("D") { Annotations = [new()] }] },
256new() { Contents = [new TextContent("E") { Annotations = [new()] }] },
257new() { Contents = [new TextContent("F") { Annotations = [new()] }] },
258new() { Contents = [new TextContent("G") { Annotations = [] }] },
259new() { Contents = [new TextContent("H") { Annotations = [] }] },
260new() { Contents = [new TextContent("I") { Annotations = [new()] }] },
261new() { Contents = [new TextContent("J") { Annotations = [new()] }] },
263new() { Contents = [new TextContent("L") { Annotations = [new()] }] },
266new() { Contents = [new TextContent("O") { Annotations = [new()] }] },
267new() { Contents = [new TextContent("P") { Annotations = [new()] }] },
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (6)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (10)
Microsoft.Extensions.AI.Tests (10)
ChatCompletion\FunctionInvokingChatClientTests.cs (5)
553new ChatMessage(ChatRole.Assistant, [new TextContent("extra"), new FunctionCallContent("callId1", "Func1"), new TextContent("stuff")]),
557new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
749updates = [new() { Contents = [new TextContent("OK bye")] }];
913? [new TextContent($"The search results were '{string.Join(", ", frcs.Select(frc => frc.Result))}'")]