Class: A2A::AgentSkill
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::AgentSkill
- Defined in:
- lib/a2a/types/agent_skill.rb
Overview
Defines a specific skill or capability offered by an agent.
Instance Method Summary collapse
-
#description ⇒ String
A detailed description of the skill, intended to help clients or users understand its purpose and functionality.
-
#examples ⇒ Array<String>?
Optional list of example inputs or use cases for the skill.
-
#id ⇒ String
Unique identifier for the skill.
-
#input_modes ⇒ Array<String>?
Optional list of input modes supported by this skill, overriding agent defaults.
-
#name ⇒ String
Human-readable name of the skill.
-
#output_modes ⇒ Array<String>?
Optional list of output modes supported by this skill, overriding agent defaults.
-
#security ⇒ Array<Hash>?
Security schemes necessary for the agent to leverage this skill.
-
#tags ⇒ Array<String>
A set of keywords describing the skill’s capabilities.
Methods included from Extensions::CaseTransformation
Instance Method Details
#description ⇒ String
Returns A detailed description of the skill, intended to help clients or users understand its purpose and functionality.
14 |
# File 'lib/a2a/types/agent_skill.rb', line 14 attribute :description, Types::String |
#examples ⇒ Array<String>?
Returns Optional list of example inputs or use cases for the skill.
20 |
# File 'lib/a2a/types/agent_skill.rb', line 20 attribute? :examples, Types::Array.of(Types::String).optional |
#id ⇒ String
Returns Unique identifier for the skill.
7 |
# File 'lib/a2a/types/agent_skill.rb', line 7 attribute :id, Types::String |
#input_modes ⇒ Array<String>?
Returns Optional list of input modes supported by this skill, overriding agent defaults.
23 |
# File 'lib/a2a/types/agent_skill.rb', line 23 attribute? :input_modes, Types::Array.of(Types::String).optional |
#name ⇒ String
Returns Human-readable name of the skill.
10 |
# File 'lib/a2a/types/agent_skill.rb', line 10 attribute :name, Types::String |
#output_modes ⇒ Array<String>?
Returns Optional list of output modes supported by this skill, overriding agent defaults.
26 |
# File 'lib/a2a/types/agent_skill.rb', line 26 attribute? :output_modes, Types::Array.of(Types::String).optional |
#security ⇒ Array<Hash>?
Returns Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
32 |
# File 'lib/a2a/types/agent_skill.rb', line 32 attribute? :security, Types::Array.of(Types::Hash.map(Types::String, Types::Array.of(Types::String))).optional |
#tags ⇒ Array<String>
Returns A set of keywords describing the skill’s capabilities.
17 |
# File 'lib/a2a/types/agent_skill.rb', line 17 attribute :tags, Types::Array.of(Types::String) |