Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskMessage
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Represents a single message in a conversation, compliant with the A2A specification.
Instance Attribute Summary collapse
-
#message_id ⇒ String
Required.
-
#metadata ⇒ Hash<String,Object>
Optional.
-
#parts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>
Required.
-
#role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TaskMessage
constructor
A new instance of GoogleCloudAiplatformV1beta1TaskMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TaskMessage
Returns a new instance of GoogleCloudAiplatformV1beta1TaskMessage.
63641 63642 63643 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message_id ⇒ String
Required. The unique identifier of the message.
Corresponds to the JSON property messageId
63623 63624 63625 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63623 def @message_id end |
#metadata ⇒ Hash<String,Object>
Optional. A2A message may have extension_uris or reference_task_ids. They will
be stored under metadata.
Corresponds to the JSON property metadata
63629 63630 63631 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63629 def @metadata end |
#parts ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>
Required. The parts of the message.
Corresponds to the JSON property parts
63634 63635 63636 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63634 def parts @parts end |
#role ⇒ String
Required. The role of the sender of the message. e.g. "user", "agent"
Corresponds to the JSON property role
63639 63640 63641 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63639 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
63646 63647 63648 63649 63650 63651 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 63646 def update!(**args) @message_id = args[:message_id] if args.key?(:message_id) @metadata = args[:metadata] if args.key?(:metadata) @parts = args[:parts] if args.key?(:parts) @role = args[:role] if args.key?(:role) end |