10 references to Clone
Microsoft.Extensions.AI (7)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
193options = options is not null ? options.Clone() : new();
ChatCompletion\ConfigureOptionsChatClient.cs (2)
27/// the caller didn't supply a <see cref="ChatOptions"/> instance, or a clone (via <see cref="ChatOptions.Clone"/> of the caller-supplied 54options = options?.Clone() ?? new();
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (1)
24/// <see cref="ChatOptions"/> if the caller didn't supply a <see cref="ChatOptions"/> instance, or a clone (via <see cref="ChatOptions.Clone"/>)
ChatCompletion\FunctionInvokingChatClient.cs (3)
456options = options.Clone(); 464options = options.Clone(); 480options = options.Clone();
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
31ChatOptions clone = options.Clone(); 100ChatOptions clone = options.Clone();
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
53options = options.Clone();