1 instantiation of ChatResponse
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
225
return new
ChatResponse
<T>(result, serializerOptions) { IsWrappedInObject = isWrappedInObject };
9 references to ChatResponse
Microsoft.Extensions.AI (7)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (6)
42
public static Task<
ChatResponse
<T>> GetResponseAsync<T>(
63
public static Task<
ChatResponse
<T>> GetResponseAsync<T>(
83
public static Task<
ChatResponse
<T>> GetResponseAsync<T>(
104
public static Task<
ChatResponse
<T>> GetResponseAsync<T>(
126
public static Task<
ChatResponse
<T>> GetResponseAsync<T>(
151
public static async Task<
ChatResponse
<T>> GetResponseAsync<T>(
ChatCompletion\ChatResponse{T}.cs (1)
34
/// <summary>Initializes a new instance of the <see cref="
ChatResponse
{T}"/> class.</summary>
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (2)
193
var
response = await client.GetResponseAsync<int>("Hello");
368
var
response = await client.GetResponseAsync<Animal>(chatHistory, jso);