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
FunctionCallingConfigFirebase::AI::FunctionCallingConfig::Any(paramsstring[]allowedFunctionNames)
Creates a function calling config where the model will always call a provided function.
| Details | |||
|---|---|---|---|
| Parameters |
|
Any
FunctionCallingConfigFirebase::AI::FunctionCallingConfig::Any(IEnumerable<string>allowedFunctionNames)
Creates a function calling config where the model will always call a provided function.
| Details | |||
|---|---|---|---|
| Parameters |
|
Auto
FunctionCallingConfigFirebase::AI::FunctionCallingConfig::Auto()
Creates a function calling config where the model calls functions at its discretion.
Note: This is the default behavior.
None
FunctionCallingConfigFirebase::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 anyFunctionDeclaration tools when instantiating the model.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.