Class: OmniAI::Chat::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/omniai/chat/content.rb

Overview

A file used for analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, type: :text) ⇒ Content

Returns a new instance of Content.

Parameters:

  • url (String)
  • text (String)
  • type (Symbol) (defaults to: :text)

    :image / :video / :audio / :text



12
13
14
15
# File 'lib/omniai/chat/content.rb', line 12

def initialize(value, type: :text)
  @value = value
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/omniai/chat/content.rb', line 7

def type
  @type
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/omniai/chat/content.rb', line 7

def value
  @value
end