Class: Google::Apis::AgentregistryV1alpha::A2ASkill

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

Output only. A more detailed description of the skill. Corresponds to the JSON property description

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 32

def description
  @description
end

#examplesArray<String>

Output only. Example prompts or scenarios this skill can handle. Corresponds to the JSON property examples

Returns:

  • (Array<String>)


37
38
39
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 37

def examples
  @examples
end

#idString

Output only. A unique identifier for the agent's skill. Corresponds to the JSON property id

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 42

def id
  @id
end

#nameString

Output only. A human-readable name for the agent's skill. Corresponds to the JSON property name

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 47

def name
  @name
end

#tagsArray<String>

Output only. Keywords describing the skill. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


52
53
54
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 52

def tags
  @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