Class: Braintrust::Models::InsertProjectLogsEventMerge::Metrics

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/insert_project_logs_event_merge.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#completion_tokensInteger

The number of tokens in the completion generated by the model (only set if this is an LLM span)

Returns:

  • (Integer)


106
# File 'lib/braintrust/models/insert_project_logs_event_merge.rb', line 106

optional :completion_tokens, Integer

#end_Float

A unix timestamp recording when the section of code which produced the project logs event finished

Returns:

  • (Float)


111
# File 'lib/braintrust/models/insert_project_logs_event_merge.rb', line 111

optional :end_, Float

#prompt_tokensInteger

The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span)

Returns:

  • (Integer)


116
# File 'lib/braintrust/models/insert_project_logs_event_merge.rb', line 116

optional :prompt_tokens, Integer

#startFloat

A unix timestamp recording when the section of code which produced the project logs event started

Returns:

  • (Float)


121
# File 'lib/braintrust/models/insert_project_logs_event_merge.rb', line 121

optional :start, Float

#tokensInteger

The total number of tokens in the input and output of the project logs event.

Returns:

  • (Integer)


126
# File 'lib/braintrust/models/insert_project_logs_event_merge.rb', line 126

optional :tokens, Integer