Class: Google::Apis::AgentregistryV1alpha::Card

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb

Overview

Full Agent Card payload, often obtained from the A2A Agent Card.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Card

Returns a new instance of Card.



334
335
336
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 334

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

Instance Attribute Details

#contentHash<String,Object>

Output only. The content of the agent card. Corresponds to the JSON property content

Returns:

  • (Hash<String,Object>)


327
328
329
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 327

def content
  @content
end

#typeString

Output only. The type of agent card. Corresponds to the JSON property type

Returns:

  • (String)


332
333
334
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 332

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



339
340
341
342
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 339

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @type = args[:type] if args.key?(:type)
end