Class: Google::Apis::AgentregistryV1alpha::Skill
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::Skill
- 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
-
#description ⇒ String
Output only.
-
#examples ⇒ Array<String>
Output only.
-
#id ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#tags ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Skill
constructor
A new instance of Skill.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#description ⇒ String
Output only. A more detailed description of the skill.
Corresponds to the JSON property description
1244 1245 1246 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1244 def description @description end |
#examples ⇒ Array<String>
Output only. Example prompts or scenarios this skill can handle.
Corresponds to the JSON property examples
1249 1250 1251 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1249 def examples @examples end |
#id ⇒ String
Output only. A unique identifier for the agent's skill.
Corresponds to the JSON property id
1254 1255 1256 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1254 def id @id end |
#name ⇒ String
Output only. A human-readable name for the agent's skill.
Corresponds to the JSON property name
1259 1260 1261 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1259 def name @name end |
#tags ⇒ Array<String>
Output only. Keywords describing the skill.
Corresponds to the JSON property tags
1264 1265 1266 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1264 def @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 |