View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content (google_api_ai_platform v0.13.0)
The base structured datatype containing multi-part content of a message. A Content
includes a role
field designating the producer of the Content
and a parts
field containing multi-part data that contains the content of the message turn.
Attributes
-
parts
(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Part.t)
, default:nil
) - Required. OrderedParts
that constitute a single message. Parts may have different IANA MIME types. -
role
(type:String.t
, default:nil
) - Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content{ parts: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Part.t()] | nil, role: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.