# Part

class Part constructor(val text: String? = null, val inlineData: Blob? = null, val fileData: FileData? = null, val functionCall: FunctionCall? = null, val functionResponse: FunctionResponse? = null, val thought: Boolean? = null, val thoughtSignature: ByteArray? = null, val opaqueData: Any? = null)

A part of a multi-modal prompt or response.

A Part can contain one of the following:

- text: Plain text.

- inlineData: Binary data (e.g., image, audio).

- fileData: Data from a file.

- functionCall: A call to a function.

- functionResponse: The response from a function call.

## Constructors

Part
Link copied to clipboard
constructor(text: String? = null, inlineData: Blob? = null, fileData: FileData? = null, functionCall: FunctionCall? = null, functionResponse: FunctionResponse? = null, thought: Boolean? = null, thoughtSignature: ByteArray? = null)
constructor(text: String? = null, inlineData: Blob? = null, fileData: FileData? = null, functionCall: FunctionCall? = null, functionResponse: FunctionResponse? = null, thought: Boolean? = null, thoughtSignature: ByteArray? = null, opaqueData: Any? = null)

## Properties

fileData
Link copied to clipboard
val fileData: FileData? = null

Data from a file.

functionCall
Link copied to clipboard
val functionCall: FunctionCall? = null

A call to a function.

functionResponse
Link copied to clipboard
val functionResponse: FunctionResponse? = null

The response from a function call.

inlineData
Link copied to clipboard
val inlineData: Blob? = null

Binary data (e.g., image, audio).

opaqueData
Link copied to clipboard
val opaqueData: Any? = null

Other opaque data associated with the part to be interpreted by the agent. Reserved for ADK internal use. Users should not set this field.

text
Link copied to clipboard
val text: String? = null

Plain text.

thought
Link copied to clipboard
val thought: Boolean? = null

Indicates whether the part represents the model's thought process.

thoughtSignature
Link copied to clipboard
val thoughtSignature: ByteArray? = null

An opaque signature for the thought.

## Functions

copy
Link copied to clipboard
fun copy(text: String? = this.text, inlineData: Blob? = this.inlineData, fileData: FileData? = this.fileData, functionCall: FunctionCall? = this.functionCall, functionResponse: FunctionResponse? = this.functionResponse, thought: Boolean? = this.thought, thoughtSignature: ByteArray? = this.thoughtSignature): Part
fun copy(text: String? = this.text, inlineData: Blob? = this.inlineData, fileData: FileData? = this.fileData, functionCall: FunctionCall? = this.functionCall, functionResponse: FunctionResponse? = this.functionResponse, thought: Boolean? = this.thought, thoughtSignature: ByteArray? = this.thoughtSignature, opaqueData: Any?): Part
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
toStringInternal
Link copied to clipboard
fun toStringInternal(): String