Class: NewRelic::Agent::Llm::ChatCompletionMessage

Inherits:
LlmEvent
  • Object
show all
Defined in:
lib/new_relic/agent/llm/chat_completion_message.rb

Constant Summary collapse

ATTRIBUTES =
%i[content role sequence completion_id token_count
is_response]
EVENT_NAME =
'LlmChatCompletionMessage'

Constants inherited from LlmEvent

LlmEvent::AGENT_DEFINED_ATTRIBUTES, LlmEvent::ATTRIBUTE_NAME_EXCEPTIONS, LlmEvent::CODE_STRING, LlmEvent::ERROR_ATTRIBUTE_CODE, LlmEvent::ERROR_ATTRIBUTE_PARAM, LlmEvent::ERROR_ATTRIBUTE_STATUS_CODE, LlmEvent::ERROR_STRING, LlmEvent::INGEST_SOURCE, LlmEvent::PARAM_STRING

Instance Method Summary collapse

Methods inherited from LlmEvent

#attribute_name_exceptions, #error_attributes, #event_attributes, #initialize, #record, set_llm_agent_attribute_on_transaction

Constructor Details

This class inherits a constructor from NewRelic::Agent::Llm::LlmEvent

Instance Method Details

#attributesObject



15
16
17
# File 'lib/new_relic/agent/llm/chat_completion_message.rb', line 15

def attributes
  LlmEvent::ATTRIBUTES + ATTRIBUTES
end

#event_nameObject



19
20
21
# File 'lib/new_relic/agent/llm/chat_completion_message.rb', line 19

def event_name
  EVENT_NAME
end