Class: Braintrust::Models::ProjectLogsEvent::Metrics
- Defined in:
- lib/braintrust/models/project_logs_event.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 project logs event finished.
-
#prompt_tokens ⇒ Integer
The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span).
-
#start ⇒ Float
A unix timestamp recording when the section of code which produced the project logs event started.
-
#tokens ⇒ Integer
The total number of tokens in the input and output of the project logs 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)
128 |
# File 'lib/braintrust/models/project_logs_event.rb', line 128 optional :completion_tokens, Integer |
#end_ ⇒ Float
A unix timestamp recording when the section of code which produced the project logs event finished
133 |
# File 'lib/braintrust/models/project_logs_event.rb', line 133 optional :end_, Float |
#prompt_tokens ⇒ Integer
The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span)
138 |
# File 'lib/braintrust/models/project_logs_event.rb', line 138 optional :prompt_tokens, Integer |
#start ⇒ Float
A unix timestamp recording when the section of code which produced the project logs event started
143 |
# File 'lib/braintrust/models/project_logs_event.rb', line 143 optional :start, Float |
#tokens ⇒ Integer
The total number of tokens in the input and output of the project logs event.
148 |
# File 'lib/braintrust/models/project_logs_event.rb', line 148 optional :tokens, Integer |