Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskMessage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TaskMessage

Returns a new instance of GoogleCloudAiplatformV1beta1TaskMessage.



64213
64214
64215
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64213

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#message_idString

Required. The unique identifier of the message. Corresponds to the JSON property messageId

Returns:

  • (String)


64195
64196
64197
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64195

def message_id
  @message_id
end

#metadataHash<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

Returns:

  • (Hash<String,Object>)


64201
64202
64203
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64201

def 
  @metadata
end

#partsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>

Required. The parts of the message. Corresponds to the JSON property parts



64206
64207
64208
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64206

def parts
  @parts
end

#roleString

Required. The role of the sender of the message. e.g. "user", "agent" Corresponds to the JSON property role

Returns:

  • (String)


64211
64212
64213
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64211

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64218
64219
64220
64221
64222
64223
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 64218

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