google.ai.generativelanguage.Part

A datatype containing media that is part of a multi-part Content message.

A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in Part.data.

A Part must have a fixed IANA MIME type identifying the type and subtype of the media if the inline_data field is filled with raw bytes.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

text str

Inline text.

This field is a member of oneof_ data.

inline_data google.ai.generativelanguage.Blob

Inline media bytes.

This field is a member of oneof_ data.

function_call google.ai.generativelanguage.FunctionCall

A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values.

This field is a member of oneof_ data.

function_response google.ai.generativelanguage.FunctionResponse

The result output of a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model.

This field is a member of oneof_ data.