11 references to Clone
Microsoft.Extensions.AI (8)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
154options = (options ?? new()).Clone();
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 55options = 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 (4)
273options = options.Clone(); 279options = options.Clone(); 379options = options.Clone(); 385options = options.Clone();
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
30ChatOptions clone = options.Clone(); 96ChatOptions clone = options.Clone();
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
47options = options.Clone();