Class: A2A::AgentSkill

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/agent_skill.rb

Overview

Defines a specific skill or capability offered by an agent.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#descriptionString?

Returns Optional description of the skill.

Returns:

  • (String, nil)

    Optional description of the skill.



13
# File 'lib/a2a/types/agent_skill.rb', line 13

attribute? :description, Types::String.optional

#examplesArray<String>?

Returns Optional list of example inputs or use cases for the skill.

Returns:

  • (Array<String>, nil)

    Optional list of example inputs or use cases for the skill.



19
# File 'lib/a2a/types/agent_skill.rb', line 19

attribute? :examples, Types::Array.of(Types::String).optional

#idString

Returns Unique identifier for the skill.

Returns:

  • (String)

    Unique identifier for the skill.



7
# File 'lib/a2a/types/agent_skill.rb', line 7

attribute :id, Types::String

#input_modesArray<String>?

Returns Optional list of input modes supported by this skill, overriding agent defaults.

Returns:

  • (Array<String>, nil)

    Optional list of input modes supported by this skill, overriding agent defaults.



22
# File 'lib/a2a/types/agent_skill.rb', line 22

attribute? :input_modes, Types::Array.of(Types::String).optional

#nameString

Returns Human-readable name of the skill.

Returns:

  • (String)

    Human-readable name of the skill.



10
# File 'lib/a2a/types/agent_skill.rb', line 10

attribute :name, Types::String

#output_modesArray<String>?

Returns Optional list of output modes supported by this skill, overriding agent defaults.

Returns:

  • (Array<String>, nil)

    Optional list of output modes supported by this skill, overriding agent defaults.



25
# File 'lib/a2a/types/agent_skill.rb', line 25

attribute? :output_modes, Types::Array.of(Types::String).optional

#tagsArray<String>?

Returns Optional list of tags associated with the skill for categorization.

Returns:

  • (Array<String>, nil)

    Optional list of tags associated with the skill for categorization.



16
# File 'lib/a2a/types/agent_skill.rb', line 16

attribute? :tags, Types::Array.of(Types::String).optional