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 |
| Fields | |
|---|---|
metadata |
Optional metadata associated with this part. |
Union field
|
|
text |
|
file |
|
data |
|
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 |
| Fields | |
|---|---|
mimeType |
|
name |
|
Union field
|
|
fileWithUri |
|
fileWithBytes |
A base64-encoded string. |
DataPart
DataPart represents a structured blob. This is most commonly a JSON payload.
| JSON representation |
|---|
{ "data": { object } } |
| Fields | |
|---|---|
data |
|