Class: Google::Apis::AgentregistryV1alpha::Skill

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

Represents the skills of an Agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Skill

Returns a new instance of Skill.



1266
1267
1268
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1266

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Output only. A more detailed description of the skill. Corresponds to the JSON property description

Returns:

  • (String)


1244
1245
1246
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1244

def description
  @description
end

#examplesArray<String>

Output only. Example prompts or scenarios this skill can handle. Corresponds to the JSON property examples

Returns:

  • (Array<String>)


1249
1250
1251
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1249

def examples
  @examples
end

#idString

Output only. A unique identifier for the agent's skill. Corresponds to the JSON property id

Returns:

  • (String)


1254
1255
1256
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1254

def id
  @id
end

#nameString

Output only. A human-readable name for the agent's skill. Corresponds to the JSON property name

Returns:

  • (String)


1259
1260
1261
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1259

def name
  @name
end

#tagsArray<String>

Output only. Keywords describing the skill. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1264
1265
1266
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1264

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1271
1272
1273
1274
1275
1276
1277
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1271

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @examples = args[:examples] if args.key?(:examples)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @tags = args[:tags] if args.key?(:tags)
end