FunctionResponsePart

class FunctionResponsePart : Part


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

Summary

Public companion functions

FunctionResponsePart
from(jsonObject: JsonObject, parts: List<Part>)

Public constructors

FunctionResponsePart(
    name: String,
    response: JsonObject,
    id: String?,
    parts: List<Part>
)

Public companion functions

from

fun from(jsonObject: JsonObject, parts: List<Part> = emptyList()): FunctionResponsePart

Public constructors

FunctionResponsePart

FunctionResponsePart(
    name: String,
    response: JsonObject,
    id: String? = null,
    parts: List<Part> = emptyList()
)
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?

isThought

open val isThoughtBoolean

name

val nameString

parts

val partsList<Part>

response

val responseJsonObject