FunctionResponsePart

class FunctionResponsePart : 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 properties

String?

Matching id for a FunctionCallPart, if one was provided.

String

The name of the called function.

JsonObject

The response produced by the function as a JSONObject.

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 a JSONObject.

id: String? = null

Matching id for a FunctionCallPart, if one was provided.

Public properties

id

val idString?

Matching id for a FunctionCallPart, if one was provided.

name

val nameString

The name of the called function.

response

val responseJsonObject

The response produced by the function as a JSONObject.