Stay organized with collections
Save and categorize content based on your preferences.
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 |
allowedFunctionNames
|
A set of function names that, when provided, limits the function that the model will call.
|
|
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 |
allowedFunctionNames
|
A set of function names that, when provided, limits the function that the model will call.
|
|
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# Firebase.AI.FunctionCallingConfig Struct Reference\n\nFirebase.AI.FunctionCallingConfig\n=================================\n\nConfiguration for specifying function calling behavior.\n\nSummary\n-------\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Any](#struct_firebase_1_1_a_i_1_1_function_calling_config_1a2749cd6ca620fc829aedcd5e93d6e0fb)`(params string[] allowedFunctionNames)` | [FunctionCallingConfig](/docs/reference/unity/struct/firebase/a-i/function-calling-config#struct_firebase_1_1_a_i_1_1_function_calling_config) Creates a function calling config where the model will always call a provided function. |\n| [Any](#struct_firebase_1_1_a_i_1_1_function_calling_config_1ae0ca8076faf5925afe4d556d7bf9f724)`(IEnumerable\u003c string \u003e allowedFunctionNames)` | [FunctionCallingConfig](/docs/reference/unity/struct/firebase/a-i/function-calling-config#struct_firebase_1_1_a_i_1_1_function_calling_config) Creates a function calling config where the model will always call a provided function. |\n| [Auto](#struct_firebase_1_1_a_i_1_1_function_calling_config_1a9b4d453b301c85777a00cc2195677170)`()` | [FunctionCallingConfig](/docs/reference/unity/struct/firebase/a-i/function-calling-config#struct_firebase_1_1_a_i_1_1_function_calling_config) Creates a function calling config where the model calls functions at its discretion. |\n| [None](#struct_firebase_1_1_a_i_1_1_function_calling_config_1ae87f4a3414d43dadc7311a72b29e4041)`()` | [FunctionCallingConfig](/docs/reference/unity/struct/firebase/a-i/function-calling-config#struct_firebase_1_1_a_i_1_1_function_calling_config) Creates a function calling config where the model will never call a function. |\n\nPublic static functions\n-----------------------\n\n### Any\n\n```c#\nFunctionCallingConfig Firebase::AI::FunctionCallingConfig::Any(\n params string[] allowedFunctionNames\n)\n``` \nCreates a function calling config where the model will always call a provided function.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------------------|--------------------------------------------------------------------------------------------| | `allowedFunctionNames` | A set of function names that, when provided, limits the function that the model will call. | |\n\n### Any\n\n```c#\nFunctionCallingConfig Firebase::AI::FunctionCallingConfig::Any(\n IEnumerable\u003c string \u003e allowedFunctionNames\n)\n``` \nCreates a function calling config where the model will always call a provided function.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------------------|--------------------------------------------------------------------------------------------| | `allowedFunctionNames` | A set of function names that, when provided, limits the function that the model will call. | |\n\n### Auto\n\n```c#\nFunctionCallingConfig Firebase::AI::FunctionCallingConfig::Auto()\n``` \nCreates a function calling config where the model calls functions at its discretion.\n\nNote: This is the default behavior. \n\n### None\n\n```c#\nFunctionCallingConfig Firebase::AI::FunctionCallingConfig::None()\n``` \nCreates a function calling config where the model will never call a function.\n\nNote: This can also be achieved by not passing any [FunctionDeclaration](/docs/reference/unity/struct/firebase/a-i/function-declaration#struct_firebase_1_1_a_i_1_1_function_declaration) tools when instantiating the model."]]