Back to Firebase Js Sdk

StartAudioConversationOptions interface

docs-devsite/ai.startaudioconversationoptions.md

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

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

Options for startAudioConversation()<!-- -->.

<b>Signature:</b>

typescript
export interface StartAudioConversationOptions 

Properties

PropertyTypeDescription
functionCallingHandler(functionCalls: FunctionCall<!-- -->[]) => Promise<FunctionResponse<!-- -->><b><i>(Public Preview)</i></b> An async handler that is called when the model requests a function to be executed. The handler should perform the function call and return the result as a <code>Part</code>, which will then be sent back to the model.

StartAudioConversationOptions.functionCallingHandler

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 async handler that is called when the model requests a function to be executed. The handler should perform the function call and return the result as a Part<!-- -->, which will then be sent back to the model.

<b>Signature:</b>

typescript
functionCallingHandler?: (functionCalls: FunctionCall[]) => Promise<FunctionResponse>;