Skip to content

Latest commit

 

History

History
158 lines (98 loc) · 3 KB

File metadata and controls

158 lines (98 loc) · 3 KB

google.generativeai.protos.Part

View source on GitHub

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.

Attributes

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.

file_data

google.ai.generativelanguage.FileData

URI based data.

This field is a member of oneof_ data.

executable_code

google.ai.generativelanguage.ExecutableCode

Code generated by the model that is meant to be executed.

This field is a member of oneof_ data.

code_execution_result

google.ai.generativelanguage.CodeExecutionResult

Result of executing the ExecutableCode.

This field is a member of oneof_ data.