17 references to Text
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatOptions.cs (1)
38/// This property can be set to <see cref="ChatResponseFormat.Text"/> to specify that the response should be unstructured text,
ChatCompletion\ChatResponseFormatText.cs (2)
10/// Use <see cref="ChatResponseFormat.Text"/> to get an instance of <see cref="ChatResponseFormatText"/>. 16/// <remarks> Use <see cref="ChatResponseFormat.Text"/> to get an instance of <see cref="ChatResponseFormatText"/>.</remarks>
Microsoft.Extensions.AI.Abstractions.Tests (14)
ChatCompletion\ChatResponseFormatTests.cs (14)
15Assert.Same(ChatResponseFormat.Text, ChatResponseFormat.Text); 48Assert.True(ChatResponseFormat.Text == ChatResponseFormat.Text); 49Assert.True(ChatResponseFormat.Text.Equals(ChatResponseFormat.Text)); 50Assert.Equal(ChatResponseFormat.Text.GetHashCode(), ChatResponseFormat.Text.GetHashCode()); 51Assert.False(ChatResponseFormat.Text.Equals(ChatResponseFormat.Json)); 52Assert.False(ChatResponseFormat.Text.Equals(new ChatResponseFormatJson(null))); 53Assert.False(ChatResponseFormat.Text.Equals(new ChatResponseFormatJson("{}"))); 57Assert.False(ChatResponseFormat.Json.Equals(ChatResponseFormat.Text)); 83string json = JsonSerializer.Serialize(ChatResponseFormat.Text, TestJsonSerializerContext.Default.ChatResponseFormat); 87Assert.Equal(ChatResponseFormat.Text, result);