Class: Google::Apis::AgentregistryV1alpha::A2ASkill
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::A2ASkill
- 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) ⇒ A2ASkill
constructor
A new instance of A2ASkill.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ A2ASkill
Returns a new instance of A2ASkill.
54 55 56 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 54 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
32 33 34 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 32 def description @description end |
#examples ⇒ Array<String>
Output only. Example prompts or scenarios this skill can handle.
Corresponds to the JSON property examples
37 38 39 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 37 def examples @examples end |
#id ⇒ String
Output only. A unique identifier for the agent's skill.
Corresponds to the JSON property id
42 43 44 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 42 def id @id end |
#name ⇒ String
Output only. A human-readable name for the agent's skill.
Corresponds to the JSON property name
47 48 49 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 47 def name @name end |
#tags ⇒ Array<String>
Output only. Keywords describing the skill.
Corresponds to the JSON property tags
52 53 54 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 52 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
59 60 61 62 63 64 65 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 59 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 |