Class: Copilot::ContentBlock

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

A content block in a mixed text+image response.

Instance Attribute Summary collapse

Instance Attribute Details

#imageObject

Returns the value of attribute image

Returns:

  • (Object)

    the current value of image



324
325
326
# File 'lib/copilot/types.rb', line 324

def image
  @image
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



324
325
326
# File 'lib/copilot/types.rb', line 324

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



324
325
326
# File 'lib/copilot/types.rb', line 324

def type
  @type
end