# Firebase.AI.Tool

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

## Summary

A `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_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 ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1af0704d27cdf64529504943499473939c(params https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/function-declaration#struct_firebase_1_1_a_i_1_1_function_declaration[] functionDeclarations)` Creates a tool that allows the model to perform function calling. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a940acfb6a5cf54df9100a9056f8ba324(IEnumerable< https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/function-declaration#struct_firebase_1_1_a_i_1_1_function_declaration > functionDeclarations)` Creates a tool that allows the model to perform function calling. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a4a9de8a372549eace8d31f560141ac94(params https://firebase.google.com/docs/reference/unity/class/firebase/a-i/auto-function-declaration#class_firebase_1_1_a_i_1_1_auto_function_declaration[] functionDeclarations)` Creates a tool that allows the model to perform function calling. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a926e42321b853e21746330a706dc9d98(IEnumerable< https://firebase.google.com/docs/reference/unity/class/firebase/a-i/auto-function-declaration#class_firebase_1_1_a_i_1_1_auto_function_declaration > functionDeclarations)` Creates a tool that allows the model to perform function calling. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a74a37395f428b3091e2b3fbe4e9f74fc(https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/google-search#struct_firebase_1_1_a_i_1_1_google_search googleSearch)` Creates a tool that allows the model to use Grounding with Google Search. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a1628358b2ac53696070f1dcc749c2350(https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/code-execution#struct_firebase_1_1_a_i_1_1_code_execution codeExecution)` Creates a tool that allows the model to use Code Execution. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1ab0eb1eb191d952df6e63f6071bf6c36c(https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/url-context#struct_firebase_1_1_a_i_1_1_url_context urlContext)` Creates a tool that allows you to provide additional context to the models in the form of public web URLs. ||
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/tool#struct_firebase_1_1_a_i_1_1_tool_1a6a8a6748a76c18774c71d453d0a27daa(https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/google-maps#struct_firebase_1_1_a_i_1_1_google_maps googleMaps)` Creates a tool that allows the model to use Grounding for Google Maps. ||

## Public functions

### Tool

```c#
 Firebase::AI::Tool::Tool(
  params FunctionDeclaration[] functionDeclarations
)
```
Creates a tool that allows the model to perform function calling.

<br />

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

### Tool

```c#
 Firebase::AI::Tool::Tool(
  IEnumerable< FunctionDeclaration > functionDeclarations
)
```
Creates a tool that allows the model to perform function calling.

<br />

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

### Tool

```c#
 Firebase::AI::Tool::Tool(
  params AutoFunctionDeclaration[] functionDeclarations
)
```
Creates a tool that allows the model to perform function calling.

<br />

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

### Tool

```c#
 Firebase::AI::Tool::Tool(
  IEnumerable< AutoFunctionDeclaration > functionDeclarations
)
```
Creates a tool that allows the model to perform function calling.

<br />

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

### Tool

```c#
 Firebase::AI::Tool::Tool(
  GoogleSearch googleSearch
)
```
Creates a tool that allows the model to use Grounding with Google Search.

<br />

Details Parameters `googleSearch` An empty `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/google-search#struct_firebase_1_1_a_i_1_1_google_search` object. The presence of this object in the list of tools enables the model to use Google Search.

### Tool

```c#
 Firebase::AI::Tool::Tool(
  CodeExecution codeExecution
)
```
Creates a tool that allows the model to use Code Execution.

<br />

Details Parameters `codeExecution` An empty `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/code-execution#struct_firebase_1_1_a_i_1_1_code_execution` object. The presence of this object in the list of tools enables the model to use Code Execution.

### Tool

```c#
 Firebase::AI::Tool::Tool(
  UrlContext urlContext
)
```
Creates a tool that allows you to provide additional context to the models in the form of public web URLs.

<br />

Details Parameters `urlContext` An empty `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/url-context#struct_firebase_1_1_a_i_1_1_url_context` object. The presence of this object in the list of tools enables the model to use Url Contexts.

### Tool

```c#
 Firebase::AI::Tool::Tool(
  GoogleMaps googleMaps
)
```
Creates a tool that allows the model to use Grounding for Google Maps.

<br />

Details Parameters `googleMaps` The Grounding for Google Maps configuration. The presence of this object in the list of tools enables the model to use Grounding for Google Maps.