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.
334 335 336 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 334 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
327 328 329 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 327 def content @content end |
#type ⇒ String
Output only. The type of agent card.
Corresponds to the JSON property type
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 |