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