47 references to Message
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.OpenAI.Tests (1)
Microsoft.Extensions.AI (7)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.AzureAIInference.Tests (6)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.Ollama.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (12)
OpenAIChatClientTests.cs (12)
191Assert.Equal("Hello! How can I assist you today?", response.Message.Text);
192Assert.Single(response.Message.Contents);
193Assert.Equal(ChatRole.Assistant, response.Message.Role);
464Assert.Equal("Hi! It's so good to hear from you!", response.Message.Text);
465Assert.Single(response.Message.Contents);
466Assert.Equal(ChatRole.Assistant, response.Message.Role);
557Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Message.Text);
558Assert.Single(response.Message.Contents);
559Assert.Equal(ChatRole.Assistant, response.Message.Role);
908Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Message.Text);
909Assert.Single(response.Message.Contents);
910Assert.Equal(ChatRole.Assistant, response.Message.Role);
Microsoft.Extensions.AI.Tests (10)