Class: Google::Apis::AgentregistryV1alpha::Card
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::Card
- 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
-
#content ⇒ Hash<String,Object>
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Card
constructor
A new instance of Card.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Card
Returns a new instance of Card.
377 378 379 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Hash<String,Object>
Output only. The content of the agent card.
Corresponds to the JSON property content
370 371 372 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 370 def content @content end |
#type ⇒ String
Output only. The type of agent card.
Corresponds to the JSON property type
375 376 377 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 375 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
382 383 384 385 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 382 def update!(**args) @content = args[:content] if args.key?(:content) @type = args[:type] if args.key?(:type) end |