Part
A datatype containing media content.
Exactly one field within a Part should be set, representing the specific type of content being conveyed. Using multiple fields within the same Part instance is considered invalid.
Constructors
Properties
Optional. The result of executing the ExecutableCode.
Optional. Code generated by the model that is intended to be executed.
Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
Media resolution for the input media.
Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. This field is not supported in Vertex AI.
Optional. An opaque signature for the thought so it can be reused in subsequent requests.
The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall.
Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.