FunctionCallingConfig

@Serializable
data class FunctionCallingConfig(val mode: Mode, val allowedFunctionNames: List<String>)

Configures how function calls are handled within a certain context, specifying the mode of operation and restrictions on which functions can be called.

Constructors

Link copied to clipboard
constructor(mode: Mode, allowedFunctionNames: List<String>)

Properties

Link copied to clipboard
val allowedFunctionNames: List<String>

A list of strings representing the names of functions that are permitted to be called. This serves as a whitelist, ensuring only specified functions can be executed, enhancing security and control over the execution environment.

Link copied to clipboard
val mode: Mode

The Mode of operation for function calling, determining how function calls are processed or restricted. This could dictate whether automatic, manual, or no function calls are allowed.