1 instantiation of ChatCompletion
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
188return new ChatCompletion<T>(result, serializerOptions) { IsWrappedInObject = isWrappedInObject };
14 references to ChatCompletion
Microsoft.Extensions.AI (5)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (4)
44public static Task<ChatCompletion<T>> CompleteAsync<T>( 64public static Task<ChatCompletion<T>> CompleteAsync<T>( 85public static Task<ChatCompletion<T>> CompleteAsync<T>( 111public 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)
57var response = await client.CompleteAsync<Animal>(chatHistory); 106var response = await client.CompleteAsync<int>("Hello"); 120var response = await client.CompleteAsync<Animal>(chatHistory); 139var response = await client.CompleteAsync<Animal>(chatHistory); 158var response = await client.CompleteAsync<Animal>(chatHistory); 194var response = await client.CompleteAsync<Animal>(chatHistory, useNativeJsonSchema: true); 228var response = await client.CompleteAsync<Data<Animal>>(chatHistory, useNativeJsonSchema: true); 256var response = await client.CompleteAsync<Animal[]>(chatHistory, useNativeJsonSchema: true); 302var response = await client.CompleteAsync<Animal>(chatHistory, jso);