Function Calling Config
@Serializable
Function calling config.
Constructors
Link copied to clipboard
constructor(allowedFunctionNames: List<String>? = null, mode: FunctionCallingConfigMode? = null, streamFunctionCallArguments: Boolean? = null)
Properties
Link copied to clipboard
Optional. Function names to call. Only set when the Mode is ANY. Function names should match FunctionDeclaration.name. With mode set to ANY, model will predict a function call from the set of function names provided.
Link copied to clipboard
Optional. Function calling mode.
Link copied to clipboard
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the FunctionCall.partial_args field. This field is not supported in Gemini API.