FunctionCallingConfig class final

Configuration specifying how the model should use the functions provided as tools.

Properties

allowedFunctionNames Set<String>?
A set of function names that, when provided, limits the functions the model will call.
final
hashCode int
The hash code for this object.
no setterinherited
mode FunctionCallingMode?
The mode in which function calling should execute.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Convert to json object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

any(Set<String> allowedFunctionNames) FunctionCallingConfig
Returns a FunctionCallingConfig instance with mode of FunctionCallingMode.any.
auto() FunctionCallingConfig
Returns a FunctionCallingConfig instance with mode of FunctionCallingMode.auto.
none() FunctionCallingConfig
Returns a FunctionCallingConfig instance with mode of FunctionCallingMode.none.