94 references to User
Microsoft.Extensions.AI (4)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (3)
70CompleteAsync<T>(chatClient, [new ChatMessage(ChatRole.User, chatMessage)], options, useNativeJsonSchema, cancellationToken);
92CompleteAsync<T>(chatClient, [new ChatMessage(ChatRole.User, chatMessage)], serializerOptions, options, useNativeJsonSchema, cancellationToken);
174promptAugmentation = new ChatMessage(ChatRole.User, $$"""
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (15)
Microsoft.Extensions.AI.AzureAIInference (2)
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
Microsoft.Extensions.AI.Integration.Tests (13)
ChatClientIntegrationTests.cs (9)
62new(ChatRole.User, "Pick a city, any city"),
64new(ChatRole.User, "And another one"),
66new(ChatRole.User, "What continent are they each in?"),
81new(ChatRole.User, "Quote, word for word, Neil Armstrong's famous words.")
147new(ChatRole.User,
170new(ChatRole.User, "What is the current secret number?")
308var message = new ChatMessage(ChatRole.User, "Pick a random number, uniformly distributed between 1 and 1000000");
325var message = new ChatMessage(ChatRole.User, "Pick a random number, uniformly distributed between 1 and 1000000");
351var message = new ChatMessage(ChatRole.User, "Pick a random number, uniformly distributed between 1 and 1000000");
Microsoft.Extensions.AI.Ollama.Tests (3)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIChatClientTests.cs (7)
356new(ChatRole.User, "hello!"),
358new(ChatRole.User, "i'm good. how are you?"),
457new(ChatRole.User, "hello!"),
548new(ChatRole.User, "hello!"),
550new(ChatRole.User, "i'm good. how are you?"),
888new(ChatRole.User, "hello!"),
901new(ChatRole.User, "Thanks!"),
Microsoft.Extensions.AI.Tests (33)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (11)
43Assert.Equal(ChatRole.User, message.Role);
56var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
119var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
138var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
157var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
193var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
227var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
255var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
289Assert.Equal(ChatRole.User, message.Role);
301var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
329var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\FunctionInvokingChatClientTests.cs (14)
57new ChatMessage(ChatRole.User, "hello"),
88new ChatMessage(ChatRole.User, "hello"),
140new ChatMessage(ChatRole.User, "hello"),
183new ChatMessage(ChatRole.User, "hello"),
219new ChatMessage(ChatRole.User, "hello"),
231new ChatMessage(ChatRole.User, "hello"),
271new ChatMessage(ChatRole.User, "hello"),
286new ChatMessage(ChatRole.User, "hello"),
294new ChatMessage(ChatRole.User, "hello"),
304new ChatMessage(ChatRole.User, "hello"),
337new ChatMessage(ChatRole.User, "hello"),
375List<ChatMessage> chat = [new ChatMessage(ChatRole.User, "hello")];
396new ChatMessage(ChatRole.User, "hello"),
452new ChatMessage(ChatRole.User, "hello"),
Microsoft.ML.GenAI.Core.Tests (1)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.LLaMA.Tests (1)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.GenAI.Samples (3)