Class: Braintrust::Models::InsertExperimentEventReplace::Metrics
- Inherits:
-
BaseModel
- Object
- BaseModel
- Braintrust::Models::InsertExperimentEventReplace::Metrics
- Defined in:
- lib/braintrust/models/insert_experiment_event_replace.rb
Instance Attribute Summary collapse
-
#completion_tokens ⇒ Integer
The number of tokens in the completion generated by the model (only set if this is an LLM span).
-
#end_ ⇒ Float
A unix timestamp recording when the section of code which produced the experiment event finished.
-
#prompt_tokens ⇒ Integer
The number of tokens in the prompt used to generate the experiment event (only set if this is an LLM span).
-
#start ⇒ Float
A unix timestamp recording when the section of code which produced the experiment event started.
-
#tokens ⇒ Integer
The total number of tokens in the input and output of the experiment event.
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_tokens ⇒ Integer
The number of tokens in the completion generated by the model (only set if this is an LLM span)
111 |
# File 'lib/braintrust/models/insert_experiment_event_replace.rb', line 111 optional :completion_tokens, Integer |
#end_ ⇒ Float
A unix timestamp recording when the section of code which produced the experiment event finished
116 |
# File 'lib/braintrust/models/insert_experiment_event_replace.rb', line 116 optional :end_, Float |
#prompt_tokens ⇒ Integer
The number of tokens in the prompt used to generate the experiment event (only set if this is an LLM span)
121 |
# File 'lib/braintrust/models/insert_experiment_event_replace.rb', line 121 optional :prompt_tokens, Integer |
#start ⇒ Float
A unix timestamp recording when the section of code which produced the experiment event started
126 |
# File 'lib/braintrust/models/insert_experiment_event_replace.rb', line 126 optional :start, Float |
#tokens ⇒ Integer
The total number of tokens in the input and output of the experiment event.
131 |
# File 'lib/braintrust/models/insert_experiment_event_replace.rb', line 131 optional :tokens, Integer |