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)
Constructs a new FunctionDeclaration.

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.