Class: Copilot::ToolBinaryResult
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ToolBinaryResult
- Defined in:
- lib/copilot/types.rb
Overview
A binary payload returned by a tool.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#description ⇒ Object
Returns the value of attribute description.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
26 27 28 |
# File 'lib/copilot/types.rb', line 26 def data @data end |
#description ⇒ Object
Returns the value of attribute description
26 27 28 |
# File 'lib/copilot/types.rb', line 26 def description @description end |
#mime_type ⇒ Object
Returns the value of attribute mime_type
26 27 28 |
# File 'lib/copilot/types.rb', line 26 def mime_type @mime_type end |
#type ⇒ Object
Returns the value of attribute type
26 27 28 |
# File 'lib/copilot/types.rb', line 26 def type @type end |
Instance Method Details
#to_h ⇒ Object
30 31 32 33 34 |
# File 'lib/copilot/types.rb', line 30 def to_h h = { data: data, mimeType: mime_type, type: type } h[:description] = description if description h end |