Firebase.AI.Tool

A helper tool that the model may use when generating responses.

Summary

A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.

Constructors and Destructors

Tool(params FunctionDeclaration[] functionDeclarations)
Creates a tool that allows the model to perform function calling.
Tool(IEnumerable< FunctionDeclaration > functionDeclarations)
Creates a tool that allows the model to perform function calling.
Tool(GoogleSearch googleSearch)
Creates a tool that allows the model to use Grounding with Google Search.

Public functions

Tool

 Firebase::AI::Tool::Tool(
  params FunctionDeclaration[] functionDeclarations
)

Creates a tool that allows the model to perform function calling.

Details
Parameters
functionDeclarations
A list of FunctionDeclarations available to the model that can be used for function calling.

Tool

 Firebase::AI::Tool::Tool(
  IEnumerable< FunctionDeclaration > functionDeclarations
)

Creates a tool that allows the model to perform function calling.

Details
Parameters
functionDeclarations
A list of FunctionDeclarations available to the model that can be used for function calling.

Tool

 Firebase::AI::Tool::Tool(
  GoogleSearch googleSearch
)

Creates a tool that allows the model to use Grounding with Google Search.

Details
Parameters
googleSearch
An empty GoogleSearch object. The presence of this object in the list of tools enables the model to use Google Search.