108 references to TextContent
Microsoft.Extensions.AI.Abstractions (7)
Microsoft.Extensions.AI.Abstractions.Tests (41)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (10)
311new() { Contents = [new TextContent("D") { Annotations = [new()] }] },
312new() { Contents = [new TextContent("E") { Annotations = [new()] }] },
313new() { Contents = [new TextContent("F") { Annotations = [new()] }] },
314new() { Contents = [new TextContent("G") { Annotations = [] }] },
315new() { Contents = [new TextContent("H") { Annotations = [] }] },
316new() { Contents = [new TextContent("I") { Annotations = [new()] }] },
317new() { Contents = [new TextContent("J") { Annotations = [new()] }] },
319new() { Contents = [new TextContent("L") { Annotations = [new()] }] },
322new() { Contents = [new TextContent("O") { Annotations = [new()] }] },
323new() { 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 (9)
Microsoft.Extensions.AI.OpenAI.Tests (12)
Microsoft.Extensions.AI.Tests (13)
ChatCompletion\FunctionInvokingChatClientTests.cs (5)
552new ChatMessage(ChatRole.Assistant, [new TextContent("extra"), new FunctionCallContent("callId1", "Func1"), new TextContent("stuff")]),
556new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
748updates = [new() { Contents = [new TextContent("OK bye")] }];
912? [new TextContent($"The search results were '{string.Join(", ", frcs.Select(frc => frc.Result))}'")]