Back to Firebase Js Sdk

LiveServerToolCall interface

docs-devsite/ai.liveservertoolcall.md

12.12.11.6 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 %}

LiveServerToolCall interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A request from the model for the client to execute one or more functions.

<b>Signature:</b>

typescript
export interface LiveServerToolCall 

Properties

PropertyTypeDescription
functionCallsFunctionCall<!-- -->[]<b><i>(Public Preview)</i></b> An array of function calls to run.
type'toolCall'<b><i>(Public Preview)</i></b>

LiveServerToolCall.functionCalls

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

An array of function calls to run.

<b>Signature:</b>

typescript
functionCalls: FunctionCall[];

LiveServerToolCall.type

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

<b>Signature:</b>

typescript
type: 'toolCall';