15 writes to Role
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (5)
Microsoft.Extensions.AI.OpenAI.Tests (4)
65 references to Role
Microsoft.Extensions.AI (7)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (10)
Microsoft.Extensions.AI.AzureAIInference (4)
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Ollama (2)
Microsoft.Extensions.AI.Ollama.Tests (1)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (14)
OpenAISerializationTests.cs (10)
47Assert.Equal(ChatRole.User, message.Role);
80Assert.Equal(ChatRole.User, message.Role);
153Assert.Equal(ChatRole.System, msg.Role);
165Assert.Equal(ChatRole.User, msg.Role);
177Assert.Equal(ChatRole.Assistant, msg.Role);
189Assert.Equal(ChatRole.User, msg.Role);
247Assert.Equal(ChatRole.System, msg.Role);
271Assert.Equal(ChatRole.User, msg.Role);
407Assert.Equal(ChatRole.Assistant, msg.Role);
419Assert.Equal(ChatRole.Tool, msg.Role);
Microsoft.Extensions.AI.Tests (6)
Microsoft.ML.GenAI.LLaMA (5)
Microsoft.ML.GenAI.Phi (5)