Class: Braintrust::Models::ExperimentEvent::Metrics

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/experiment_event.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)


122
# File 'lib/braintrust/models/experiment_event.rb', line 122

optional :completion_tokens, Integer

#end_Float

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

Returns:

  • (Float)


127
# File 'lib/braintrust/models/experiment_event.rb', line 127

optional :end_, Float

#prompt_tokensInteger

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

Returns:

  • (Integer)


132
# File 'lib/braintrust/models/experiment_event.rb', line 132

optional :prompt_tokens, Integer

#startFloat

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

Returns:

  • (Float)


137
# File 'lib/braintrust/models/experiment_event.rb', line 137

optional :start, Float

#tokensInteger

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

Returns:

  • (Integer)


142
# File 'lib/braintrust/models/experiment_event.rb', line 142

optional :tokens, Integer