FunctionResponsePart

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

Constructors

Link copied to clipboard
constructor(name: String, response: JsonObject, id: String? = null, parts: List<Part> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String?
Link copied to clipboard
open override val isThought: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val response: JsonObject
Link copied to clipboard

Functions

Link copied to clipboard

Returns the part as a FileDataPart if it represents a file, and null otherwise

Link copied to clipboard

Returns the part as a InlineDataPart if it represents inline data, and null otherwise

Link copied to clipboard

Returns the part as a String if it represents text, and null otherwise