FunctionResponsePart

classFunctionResponsePart :Part


Represents function call output to be returned to the model when it requests a function call.

Summary

Public constructors

FunctionResponsePart(name: String, response: JsonObject, id: String?)

Public constructors

FunctionResponsePart

FunctionResponsePart(name: String, response: JsonObject, id: String? = null)
Parameters
name: String

The name of the called function.

response: JsonObject

The response produced by the function as aJSONObject.

id: String? = null

Matchingid for aFunctionCallPart, if one was provided.

Public properties

id

val idString?

isThought

open val isThoughtBoolean

name

val nameString

response

val responseJsonObject

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-18 UTC.