FunctionResponsePart

class FunctionResponsePart : Part


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

Summary

Public constructors

Public properties

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)
Parameters
name: String

the name of the called function

response: JsonObject

the response produced by the function as a JSONObject

Public properties

name

val nameString

the name of the called function

response

val responseJsonObject

the response produced by the function as a JSONObject