Table of Contents

Class FunctionCallingBehaviour

Namespace
GenerativeAI.Core
Assembly
GenerativeAI.dll

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

public class FunctionCallingBehaviour
Inheritance
FunctionCallingBehaviour
Inherited Members
Extension Methods

Remarks

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

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.

public bool AutoCallFunction { get; set; }

Property Value

bool

Remarks

Can be used to enhance workflow automation by allowing predefined functions to operate without manual invocation.

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.

public bool AutoHandleBadFunctionCalls { get; set; }

Property Value

bool

Remarks

Useful in scenarios where user-defined functions or external integrations might encounter unexpected failures.

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.

public bool AutoReplyFunction { get; set; }

Property Value

bool

Remarks

Useful for streamlining automated workflows involving generative AI functions.

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.

public bool FunctionEnabled { get; set; }

Property Value

bool

Remarks

Disabling this property prevents the model from utilizing any function-based features.