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 A detailed description of the skill, intended to help clients or users understand its purpose and functionality.

Returns:

  • (String)

    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

#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.



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

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.



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

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.



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

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

#securityArray<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).

Returns:

  • (Array<Hash>, nil)

    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

#tagsArray<String>

Returns A set of keywords describing the skill’s capabilities.

Returns:

  • (Array<String>)

    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)