Partager via


GeminiPromptExecutionSettings.FromExecutionSettings Method

Definition

public static Microsoft.SemanticKernel.Connectors.Google.GeminiPromptExecutionSettings FromExecutionSettings (Microsoft.SemanticKernel.PromptExecutionSettings? executionSettings);
static member FromExecutionSettings : Microsoft.SemanticKernel.PromptExecutionSettings -> Microsoft.SemanticKernel.Connectors.Google.GeminiPromptExecutionSettings
Public Shared Function FromExecutionSettings (executionSettings As PromptExecutionSettings) As GeminiPromptExecutionSettings

Parameters

executionSettings
PromptExecutionSettings

The PromptExecutionSettings object to convert.

Returns

The converted GeminiPromptExecutionSettings object. If executionSettings is null, a new instance of GeminiPromptExecutionSettings is returned. If executionSettings is already a GeminiPromptExecutionSettings object, it is casted and returned. Otherwise, the method tries to deserialize executionSettings to a GeminiPromptExecutionSettings object. If deserialization is successful, the converted object is returned. If deserialization fails or the converted object is null, an ArgumentException is thrown.

Applies to