Part

Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).

JSON representation
{
  "metadata": {
    object
  },

  // Union field part can be only one of the following:
  "text": string,
  "file": {
    object (FilePart)
  },
  "data": {
    object (DataPart)
  }
  // End of list of possible types for union field part.
}
Fields
metadata

object (Struct format)

Optional metadata associated with this part.

Union field part.

part can be only one of the following:

text

string

file

object (FilePart)

data

object (DataPart)

FilePart

FilePart represents the different ways files can be provided. If files are small, directly feeding the bytes is supported via fileWithBytes. If the file is large, the agent should read the content as appropriate directly from the fileWithUri source.

JSON representation
{
  "mimeType": string,
  "name": string,

  // Union field file can be only one of the following:
  "fileWithUri": string,
  "fileWithBytes": string
  // End of list of possible types for union field file.
}
Fields
mimeType

string

name

string

Union field file.

file can be only one of the following:

fileWithUri

string

fileWithBytes

string (bytes format)

A base64-encoded string.

DataPart

DataPart represents a structured blob. This is most commonly a JSON payload.

JSON representation
{
  "data": {
    object
  }
}
Fields
data

object (Struct format)