Sha256: 79977fee5d8bd72dca28d56823031b115743301cfa2b23ec185be0fa95be8f86

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module OmniAI
  class Chat
    # A choice returned by the API.
    class Choice
      attr_accessor :index, :message, :role

      # @param index [Integer]
      # @param message [OmniAI::Chat::Message]
      # @param role [String]
      def initialize(index:, message:)
        @index = index
        @message = message
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omniai-0.0.8 lib/omniai/chat/choice.rb
omniai-0.0.7 lib/omniai/chat/choice.rb
omniai-0.0.6 lib/omniai/chat/choice.rb
omniai-0.0.4 lib/omniai/chat/choice.rb
omniai-0.0.3 lib/omniai/chat/choice.rb