Class: Google::Apis::AgentregistryV1alpha::Frontmatter
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::Frontmatter
- 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
Structured metadata attributes extracted from the package's local SKILL.md frontmatter.
Instance Attribute Summary collapse
-
#compatibility ⇒ String
Optional.
-
#description ⇒ String
Required.
-
#license ⇒ String
Optional.
-
#metadata ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Frontmatter
constructor
A new instance of Frontmatter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Frontmatter
Returns a new instance of Frontmatter.
570 571 572 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 570 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compatibility ⇒ String
Optional. Environmental dependencies or local sidecars.
Corresponds to the JSON property compatibility
547 548 549 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 547 def compatibility @compatibility end |
#description ⇒ String
Required. Functional description.
Corresponds to the JSON property description
552 553 554 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 552 def description @description end |
#license ⇒ String
Optional. License.
Corresponds to the JSON property license
557 558 559 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 557 def license @license end |
#metadata ⇒ Hash<String,String>
Optional. Extensible flattened map mapping custom tags, authors, and version
parameters.
Corresponds to the JSON property metadata
563 564 565 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 563 def @metadata end |
#name ⇒ String
Required. The name of the skill.
Corresponds to the JSON property name
568 569 570 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 568 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
575 576 577 578 579 580 581 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 575 def update!(**args) @compatibility = args[:compatibility] if args.key?(:compatibility) @description = args[:description] if args.key?(:description) @license = args[:license] if args.key?(:license) @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) end |