Freigeben über


GeminiToolCallBehavior.EnableFunctions Method

Definition

Gets an instance that will provide the specified list of functions to the model.

public static Microsoft.SemanticKernel.Connectors.Google.GeminiToolCallBehavior EnableFunctions (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Connectors.Google.GeminiFunction> functions, bool autoInvoke = false);
static member EnableFunctions : seq<Microsoft.SemanticKernel.Connectors.Google.GeminiFunction> * bool -> Microsoft.SemanticKernel.Connectors.Google.GeminiToolCallBehavior
Public Shared Function EnableFunctions (functions As IEnumerable(Of GeminiFunction), Optional autoInvoke As Boolean = false) As GeminiToolCallBehavior

Parameters

functions
IEnumerable<GeminiFunction>

The functions that should be made available to the model.

autoInvoke
Boolean

true to attempt to automatically handle function call requests; otherwise, false.

Returns

The GeminiToolCallBehavior that may be set into GeminiToolCallBehavior to indicate that the specified functions should be made available to the model.

Applies to