StartAudioConversationOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
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().
Signature:
export interface StartAudioConversationOptions
Properties
Property |
Type |
Description |
functionCallingHandler |
(functionCalls: LiveServerToolCall['functionCalls']) => Promise<Part> |
(Public Preview) 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. |
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.
Signature:
functionCallingHandler?: (functionCalls: LiveServerToolCall['functionCalls']) => Promise<Part>;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["\u003e 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.\n\nOptions for [startAudioConversation()](./ai.md#startaudioconversation_01c8e7f).\n\n**Signature:** \n\n export interface StartAudioConversationOptions \n\nProperties\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [functionCallingHandler](./ai.startaudioconversationoptions.md#startaudioconversationoptionsfunctioncallinghandler) | (functionCalls: [LiveServerToolCall](./ai.liveservertoolcall.md#liveservertoolcall_interface)\\['functionCalls'\\]) =\\\u003e Promise\\\u003c[Part](./ai.md#part)\\\u003e | ***(Public Preview)*** 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. |\n\nStartAudioConversationOptions.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.\n\nAn 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.\n\n**Signature:** \n\n functionCallingHandler?: (functionCalls: LiveServerToolCall['functionCalls']) =\u003e Promise\u003cPart\u003e;"]]