Sha256: 4d2b87421363b5f4aae139a9b9bbb4c5c751f20fd24b75cdbd0f737a9a243e0e

Contents?: true

Size: 218 Bytes

Versions: 19

Compression:

Stored size: 218 Bytes

Contents

class Ollama::Message
  include Ollama::DTO

  attr_reader :role, :content, :images

  def initialize(role:, content:, images: nil, **)
    @role, @content, @images = role, content, (Array(images) if images)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ollama-ruby-0.12.0 lib/ollama/message.rb
ollama-ruby-0.11.0 lib/ollama/message.rb
ollama-ruby-0.10.0 lib/ollama/message.rb
ollama-ruby-0.9.3 lib/ollama/message.rb
ollama-ruby-0.9.2 lib/ollama/message.rb
ollama-ruby-0.9.1 lib/ollama/message.rb
ollama-ruby-0.9.0 lib/ollama/message.rb
ollama-ruby-0.8.0 lib/ollama/message.rb
ollama-ruby-0.7.0 lib/ollama/message.rb
ollama-ruby-0.6.0 lib/ollama/message.rb
ollama-ruby-0.5.0 lib/ollama/message.rb
ollama-ruby-0.4.0 lib/ollama/message.rb
ollama-ruby-0.3.2 lib/ollama/message.rb
ollama-ruby-0.3.1 lib/ollama/message.rb
ollama-ruby-0.3.0 lib/ollama/message.rb
ollama-ruby-0.2.0 lib/ollama/message.rb
ollama-ruby-0.1.0 lib/ollama/message.rb
ollama-ruby-0.0.1 lib/ollama/message.rb
ollama-ruby-0.0.0 lib/ollama/message.rb