Class: AgUiProtocol::Core::Capabilities::SubAgentInfo
- Inherits:
-
Types::Model
- Object
- Types::Model
- AgUiProtocol::Core::Capabilities::SubAgentInfo
- Defined in:
- lib/ag_ui_protocol/core/capabilities.rb
Overview
Describes a sub-agent that can be invoked by a parent agent.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, description: nil) ⇒ SubAgentInfo
constructor
A new instance of SubAgentInfo.
- #to_h ⇒ Object
Methods inherited from Types::Model
Constructor Details
#initialize(name:, description: nil) ⇒ SubAgentInfo
Returns a new instance of SubAgentInfo.
33 34 35 36 |
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 33 def initialize(name:, description: nil) @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
23 24 25 |
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 23 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 20 def name @name end |
Instance Method Details
#to_h ⇒ Object
39 40 41 42 43 44 |
# File 'lib/ag_ui_protocol/core/capabilities.rb', line 39 def to_h { name: @name, description: @description } end |