17 writes to Text
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatClientExtensionsTests.cs (1)
94return YieldAsync([new StreamingChatCompletionUpdate { Text = "world" }]);
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (3)
153updates.Add(new() { Text = text }); 197new() { Text = "Hello, " }, 198new() { Text = "world!" },
ChatCompletion\StreamingChatCompletionUpdateTests.cs (6)
56update.Text = "text"; 108update.Text = "text-3"; 124update.Text = "text-1"; 146update.Text = "text-1"; 150update.Text = "text-2"; 157update.Text = "text-3";
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
68Text = text,
ChatCompletion\UseDelegateChatClientTests.cs (5)
59return YieldUpdates(new StreamingChatCompletionUpdate { Text = "world" }); 141return YieldUpdates(new StreamingChatCompletionUpdate { Text = "hello" }); 162yield return new() { Text = " world" }; 201return YieldUpdates(new StreamingChatCompletionUpdate { Text = "streaming hello" }); 233yield return new() { Text = " world (streaming)" };
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
75Text = output,
19 references to Text
Microsoft.Extensions.AI.Abstractions.Tests (12)
ChatCompletion\ChatCompletionTests.cs (1)
227Assert.Equal("Text", update0.Text);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (11)
19Assert.Null(update.Text); 46Assert.Equal("text", update.Text); 55Assert.Null(update.Text); 57Assert.Equal("text", update.Text); 105Assert.Equal("text-1", update.Text); 109Assert.Equal("text-3", update.Text); 110Assert.Equal("text-3", update.Text); 125Assert.Equal("text-1", update.Text); 147Assert.Equal("text-1", update.Text); 151Assert.Equal("text-2", update.Text); 158Assert.Equal("text-3", update.Text);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
211Assert.Equal("Hello! How can I assist you today?", string.Concat(updates.Select(u => u.Text))); 610Assert.Equal("", string.Concat(updates.Select(u => u.Text)));
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (2)
87sb.Append(chunk.Text); 220sb.Append(chunk.Text);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
195Assert.Equal("Hello! How are you today? Is there something I can help you with or would you like to", string.Concat(updates.Select(u => u.Text)));
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
258Assert.Equal("Hello! How can I assist you today?", string.Concat(updates.Select(u => u.Text))); 761Assert.Equal("", string.Concat(updates.Select(u => u.Text)));