Files

56 lines
1.7 KiB
Markdown

Project: /docs/reference/js/_project.yaml
Book: /docs/reference/_book.yaml
page_type: reference
{% comment %}
DO NOT EDIT THIS FILE!
This is generated by the JS SDK team, and any local changes will be
overwritten. Changes should be made in the source code at
https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionCall interface
A predicted [FunctionCall](./ai.functioncall.md#functioncall_interface) returned from the model that contains a string representing the [FunctionDeclaration.name](./ai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values.
<b>Signature:</b>
```typescript
export interface FunctionCall
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [args](./ai.functioncall.md#functioncallargs) | object | |
| [id](./ai.functioncall.md#functioncallid) | string | The id of the function call. This must be sent back in the associated [FunctionResponse](./ai.functionresponse.md#functionresponse_interface)<!-- -->. |
| [name](./ai.functioncall.md#functioncallname) | string | |
## FunctionCall.args
<b>Signature:</b>
```typescript
args: object;
```
## FunctionCall.id
The id of the function call. This must be sent back in the associated [FunctionResponse](./ai.functionresponse.md#functionresponse_interface)<!-- -->.
This property is only supported in the Gemini Developer API ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)<!-- -->). When using the Gemini Developer API ([GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)<!-- -->), this property will be `undefined`<!-- -->.
<b>Signature:</b>
```typescript
id?: string;
```
## FunctionCall.name
<b>Signature:</b>
```typescript
name: string;
```