Class: LLM::A2A::Card::Skill
- Inherits:
-
Object
- Object
- LLM::A2A::Card::Skill
- Defined in:
- lib/llm/a2a/card/skill.rb
Overview
Represents a single skill/capability of an agent.
Instance Method Summary collapse
- #inspect ⇒ String
-
#id ⇒ String
Returns the unique identifier for the skill.
-
#name ⇒ String
Returns the human-readable skill name.
-
#description ⇒ String
Returns the detailed skill description.
-
#tags ⇒ Array<String>
Returns capability tags for the skill.
-
#examples ⇒ Array<String>
Returns example prompts for the skill.
-
#input_modes ⇒ Array<String>
Returns the supported input media types.
-
#output_modes ⇒ Array<String>
Returns the supported output media types.
-
#initialize(data) ⇒ Skill
constructor
A new instance of Skill.
Constructor Details
Instance Method Details
#inspect ⇒ String
64 65 66 |
# File 'lib/llm/a2a/card/skill.rb', line 64 def inspect "#<#{LLM::Utils.object_id(self)} @id=#{id.inspect} @name=#{name.inspect}>" end |
#id ⇒ String
Returns the unique identifier for the skill.
16 17 18 |
# File 'lib/llm/a2a/card/skill.rb', line 16 def id @data.id end |
#name ⇒ String
Returns the human-readable skill name.
23 24 25 |
# File 'lib/llm/a2a/card/skill.rb', line 23 def name @data.name end |
#description ⇒ String
Returns the detailed skill description.
30 31 32 |
# File 'lib/llm/a2a/card/skill.rb', line 30 def description @data.description end |
#tags ⇒ Array<String>
Returns capability tags for the skill.
37 38 39 |
# File 'lib/llm/a2a/card/skill.rb', line 37 def @data. || [] end |
#examples ⇒ Array<String>
Returns example prompts for the skill.
44 45 46 |
# File 'lib/llm/a2a/card/skill.rb', line 44 def examples @data.examples || [] end |
#input_modes ⇒ Array<String>
Returns the supported input media types.
51 52 53 |
# File 'lib/llm/a2a/card/skill.rb', line 51 def input_modes @data.inputModes || @data.input_modes || [] end |
#output_modes ⇒ Array<String>
Returns the supported output media types.
58 59 60 |
# File 'lib/llm/a2a/card/skill.rb', line 58 def output_modes @data.outputModes || @data.output_modes || [] end |