Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.FunctionDeclaration
Structured representation of a function declaration.
Summary
This FunctionDeclaration
is a representation of a block of code that can be used as a Tool
by the model and executed by the client.
Function calling can be used to provide data to the model that was not known at the time it was trained (for example, the current date or weather conditions) or to allow it to interact with external systems (for example, making an API request or querying/updating a database). For more details and use cases, see Introduction to function calling.
Constructors and Destructors
|
FunctionDeclaration(string name, string description, IDictionary< string, Schema > parameters, IEnumerable< string > optionalParameters)
|
Public functions
FunctionDeclaration
Firebase::AI::FunctionDeclaration::FunctionDeclaration(
string name,
string description,
IDictionary< string, Schema > parameters,
IEnumerable< string > optionalParameters
)
Constructs a new FunctionDeclaration
.
Details |
Parameters |
name
|
The name of the function; must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.
|
description
|
A brief description of the function.
|
parameters
|
Describes the parameters to this function.
|
optionalParameters
|
The names of parameters that may be omitted by the model in function calls; by default, all parameters are considered required.
|
|
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.FunctionDeclaration\n\nStructured representation of a function declaration.\n\nSummary\n\nThis [FunctionDeclaration](/docs/reference/unity/struct/firebase/a-i/function-declaration#struct_firebase_1_1_a_i_1_1_function_declaration) is a representation of a block of code that can be used as a [Tool](/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool) by the model and executed by the client.\n\nFunction calling can be used to provide data to the model that was not known at the time it was trained (for example, the current date or weather conditions) or to allow it to interact with external systems (for example, making an API request or querying/updating a database). For more details and use cases, see [Introduction to function calling](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling).\n\nPublic functions \n\nFunctionDeclaration \n\n```c#\n Firebase::AI::FunctionDeclaration::FunctionDeclaration(\n string name,\n string description,\n IDictionary\u003c string, Schema \u003e parameters,\n IEnumerable\u003c string \u003e optionalParameters\n)\n``` \nConstructs a new [FunctionDeclaration](/docs/reference/unity/struct/firebase/a-i/function-declaration#struct_firebase_1_1_a_i_1_1_function_declaration).\n\n\u003cbr /\u003e"]]