Back to Firebase Js Sdk

FunctionCall interface

docs-devsite/ai.functioncall.md

12.12.11.7 KB
Original Source

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 returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values.

<b>Signature:</b>

typescript
export interface FunctionCall 

Properties

PropertyTypeDescription
argsobject
idstringThe id of the function call. This must be sent back in the associated FunctionResponse<!-- -->.
namestring

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<!-- -->.

This property is only supported in the Gemini Developer API (GoogleAIBackend<!-- -->). When using the Gemini Developer API (GoogleAIBackend<!-- -->), this property will be undefined<!-- -->.

<b>Signature:</b>

typescript
id?: string;

FunctionCall.name

<b>Signature:</b>

typescript
name: string;