Class: Google::Apis::AgentregistryV1alpha::Frontmatter

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

Structured metadata attributes extracted from the package's local SKILL.md frontmatter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#compatibilityString

Optional. Environmental dependencies or local sidecars. Corresponds to the JSON property compatibility

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 547

def compatibility
  @compatibility
end

#descriptionString

Required. Functional description. Corresponds to the JSON property description

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 552

def description
  @description
end

#licenseString

Optional. License. Corresponds to the JSON property license

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 557

def license
  @license
end

#metadataHash<String,String>

Optional. Extensible flattened map mapping custom tags, authors, and version parameters. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


563
564
565
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 563

def 
  @metadata
end

#nameString

Required. The name of the skill. Corresponds to the JSON property name

Returns:

  • (String)


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