Sha256: 299bb4fea6ab5959e701ffd30ac10ea71484f14a73c5e532e49a4dd8677d1bb4

Contents?: true

Size: 620 Bytes

Versions: 11

Compression:

Stored size: 620 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module NewRelic
  module Agent
    module Llm
      class ChatCompletionMessage < LlmEvent
        ATTRIBUTES = %i[content role sequence completion_id token_count
          is_response]
        EVENT_NAME = 'LlmChatCompletionMessage'

        attr_accessor(*ATTRIBUTES)

        def attributes
          LlmEvent::ATTRIBUTES + ATTRIBUTES
        end

        def event_name
          EVENT_NAME
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
newrelic_rpm-9.16.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.14.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/llm/chat_completion_message.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/llm/chat_completion_message.rb