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.
398 399 400 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 398 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
391 392 393 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 391 def content @content end |
#type ⇒ String
Output only. The type of agent card.
Corresponds to the JSON property type
396 397 398 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 396 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
403 404 405 406 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 403 def update!(**args) @content = args[:content] if args.key?(:content) @type = args[:type] if args.key?(:type) end |