1 instantiation of ChatCompletion
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
188
return new
ChatCompletion
<T>(result, serializerOptions) { IsWrappedInObject = isWrappedInObject };
14 references to ChatCompletion
Microsoft.Extensions.AI (5)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (4)
44
public static Task<
ChatCompletion
<T>> CompleteAsync<T>(
64
public static Task<
ChatCompletion
<T>> CompleteAsync<T>(
85
public static Task<
ChatCompletion
<T>> CompleteAsync<T>(
111
public static async Task<
ChatCompletion
<T>> CompleteAsync<T>(
ChatCompletion\ChatCompletion{T}.cs (1)
30
/// <summary>Initializes a new instance of the <see cref="
ChatCompletion
{T}"/> class.</summary>
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
57
var
response = await client.CompleteAsync<Animal>(chatHistory);
106
var
response = await client.CompleteAsync<int>("Hello");
120
var
response = await client.CompleteAsync<Animal>(chatHistory);
139
var
response = await client.CompleteAsync<Animal>(chatHistory);
158
var
response = await client.CompleteAsync<Animal>(chatHistory);
194
var
response = await client.CompleteAsync<Animal>(chatHistory, useNativeJsonSchema: true);
228
var
response = await client.CompleteAsync<Data<Animal>>(chatHistory, useNativeJsonSchema: true);
256
var
response = await client.CompleteAsync<Animal[]>(chatHistory, useNativeJsonSchema: true);
302
var
response = await client.CompleteAsync<Animal>(chatHistory, jso);