Class: Copilot::CanvasAction
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CanvasAction
- Defined in:
- lib/copilot/types.rb
Overview
An action exposed by a canvas.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#input_schema ⇒ Object
Returns the value of attribute input_schema.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
79 80 81 |
# File 'lib/copilot/types.rb', line 79 def description @description end |
#input_schema ⇒ Object
Returns the value of attribute input_schema
79 80 81 |
# File 'lib/copilot/types.rb', line 79 def input_schema @input_schema end |
#name ⇒ Object
Returns the value of attribute name
79 80 81 |
# File 'lib/copilot/types.rb', line 79 def name @name end |
Instance Method Details
#to_h ⇒ Object
80 81 82 83 84 |
# File 'lib/copilot/types.rb', line 80 def to_h h = { name: name, description: description } h[:inputSchema] = input_schema unless input_schema.nil? h end |