Skip to content

Commit b90e10d

Browse files
committed
Add note about startAudioConversation and sendFunctionResponse
1 parent 0df186c commit b90e10d

File tree

1 file changed

+5
-1
lines changed
  • firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type

1 file changed

+5
-1
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/LiveSession.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ internal constructor(
9090
* [stopAudioConversation] or [close].
9191
*
9292
* @param functionCallHandler A callback function that is invoked whenever the model receives a
93-
* function call.
93+
* function call. The [FunctionResponsePart] that the callback function returns will be
94+
* automatically sent to the model.
9495
*/
9596
@RequiresPermission(RECORD_AUDIO)
9697
public suspend fun startAudioConversation(
@@ -203,6 +204,9 @@ internal constructor(
203204
/**
204205
* Sends function calling responses to the model.
205206
*
207+
* **NOTE:** If you're using [startAudioConversation], the method will handle sending function
208+
* responses to the model for you. You do _not_ need to call this method in that case.
209+
*
206210
* @param functionList The list of [FunctionResponsePart] instances indicating the function
207211
* response from the client.
208212
*/

0 commit comments

Comments
 (0)