Firebase. AI. FunctionCallingConfig
Configuration for specifying function calling behavior.
Summary
Public static functions |
|
---|---|
Any(params string[] allowedFunctionNames)
|
Creates a function calling config where the model will always call a provided function.
|
Any(IEnumerable< string > allowedFunctionNames)
|
Creates a function calling config where the model will always call a provided function.
|
Auto()
|
Creates a function calling config where the model calls functions at its discretion.
|
None()
|
Creates a function calling config where the model will never call a function.
|
Public static functions
Any
FunctionCallingConfig Firebase::AI::FunctionCallingConfig::Any( params string[] allowedFunctionNames )
Creates a function calling config where the model will always call a provided function.
Details | |||
---|---|---|---|
Parameters |
|
Any
FunctionCallingConfig Firebase::AI::FunctionCallingConfig::Any( IEnumerable< string > allowedFunctionNames )
Creates a function calling config where the model will always call a provided function.
Details | |||
---|---|---|---|
Parameters |
|
Auto
FunctionCallingConfig Firebase::AI::FunctionCallingConfig::Auto()
Creates a function calling config where the model calls functions at its discretion.
Note: This is the default behavior.
None
FunctionCallingConfig Firebase::AI::FunctionCallingConfig::None()
Creates a function calling config where the model will never call a function.
Note: This can also be achieved by not passing any FunctionDeclaration
tools when instantiating the model.