Gemini::Part
A datatype containing media that is part of a multi-part Content message.
Union field data. data can be only one of the following:
- text: string - Inline text.
- inlineData: object (Blob) - Inline media bytes.
- functionCall: object (FunctionCall) - A predicted FunctionCall returned from the model that contains a string
representing the
FunctionDeclaration#namewith the arguments and their values. - functionResponse: object (FunctionResponse) - The result output of a
FunctionCallthat contains a string representing theFunctionDeclaration#nameand a structured JSON object containing any output from the function is used as context to the model. - fileData: object (FileData) - URI based data.
- executableCode: object (ExecutableCode) - Code generated by the model that is meant to be executed.
- codeExecutionResult: object (CodeExecutionResult) - Result of executing the ExecutableCode.
Constructors
Instance methods
data
data=(data : Text | FunctionCall | FunctionResponse)