39 references to Text
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (1)
218Assert.Equal("Hello from middleware", completion.Text);
Aspire.OpenAI.Tests (2)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (2)
221Assert.Equal("Hello from middleware", completion.Text); 255Assert.Equal("Hello from middleware", completion.Text);
Microsoft.Extensions.AI (2)
ChatCompletion\ChatResponse{T}.cs (2)
19/// You can access the underlying JSON response on the <see cref="ChatResponse.Text"/> property. 130var json = Text;
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponse.cs (1)
122public override string ToString() => Text;
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseTests.cs (3)
21Assert.Empty(response.Text); 25Assert.Empty(response.Text); 124Assert.Equal(response.Text, response.ToString());
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
65Assert.Equal("Hello, world!", response.Text);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
142Assert.Equal("Hello! How can I assist you today?", response.Text); 667Assert.Equal("Hello.", response.Text);
Microsoft.Extensions.AI.Evaluation.Quality (4)
ChatConversationEvaluator.cs (1)
49if (string.IsNullOrWhiteSpace(modelResponse.Text))
RelevanceTruthAndCompletenessEvaluator.cs (1)
144string evaluationResponseText = evaluationResponse.Text.Trim();
SingleNumericMetricEvaluator.cs (1)
104string evaluationResponseText = evaluationResponse.Text.Trim();
Utilities\JsonOutputFixer.cs (1)
77return response.Text.Trim();
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
ScenarioRunResultTests.cs (1)
237=> obj.Text.GetHashCode();
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyEvaluator.cs (1)
159annotationResult = annotationResponse.Text;
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
52Assert.Contains("whale", response.Text, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
122Assert.Equal("Hello! How are you today? Is there something", response.Text); 210Assert.Equal("Hello! How are you today? Is there something I can help you with or would you like to", chatResponse.Text);
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (4)
166Assert.Equal("Hello! How can I assist you today?", response.Text); 529Assert.Equal("Hi! It's so good to hear from you!", response.Text); 630Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Text); 1096Assert.Equal("I’m doing well, thank you! What’s on your mind today?", response.Text);
OpenAIResponseClientTests.cs (1)
161Assert.Equal("Hello! How can I assist you today?", response.Text);
Microsoft.Extensions.AI.Tests (13)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
130Assert.Equal("Hello", (await result1).Text); 131Assert.Equal("Hello", (await result2).Text); 136Assert.Equal("Hello", (await result3).Text);
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
662Assert.Equal("The answer is 42.", response.Text); 798Assert.Equal("The search results were 'dogs, birds, cats'", result.Text);
ChatCompletion\UseDelegateChatClientTests.cs (8)
68Assert.Equal("hello", response.Text); 72Assert.Equal("world", response.Text); 111Assert.Equal("hello world", response.Text); 114Assert.Equal("hello world", response.Text); 162Assert.Equal("hello world", response.Text); 165Assert.Equal("hello world", response.Text); 233Assert.Equal("non-streaming hello world (non-streaming)", response.Text); 236Assert.Equal("streaming hello world (streaming)", response.Text);