FunctionCallingBehaviour Class

Represents the behavior and capability configuration for function-calling mechanisms within the system.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class FunctionCallingBehaviour
Inheritance
Object    FunctionCallingBehaviour

Remarks

This class provides toggles to control the automatic execution and handling of functions, as well as enabling or disabling specific function-call features.

Constructors

FunctionCallingBehaviourInitializes a new instance of the FunctionCallingBehaviour class

Properties

AutoCallFunction Determines whether function-call capabilities are automatically invoked in the generative process. This property enables or disables the auto-execution of predefined functions as part of the model's response generation.
AutoHandleBadFunctionCalls Determines whether the system automatically resolves issues caused by improper or unrecognized function calls. When enabled, it helps ensure smoother operation by handling invalid or malformed function requests.
AutoReplyFunction Enables or disables automatic function replies. When enabled, the model automatically generates responses for functions that are invoked during an interaction without requiring explicit prompts.
FunctionEnabled Determines whether function-based tools and capabilities are enabled within the generative model. These tools can include processing mechanisms that enhance content generation or facilitate specific operations.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also