Class: Braintrust::Models::LogFetchResponse::Event::Metrics
- Defined in:
- lib/braintrust/models/log_fetch_response.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
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)
130 |
# File 'lib/braintrust/models/log_fetch_response.rb', line 130 optional :completion_tokens, Integer |
#end_ ⇒ Float
A unix timestamp recording when the section of code which produced the project logs event finished
135 |
# File 'lib/braintrust/models/log_fetch_response.rb', line 135 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)
140 |
# File 'lib/braintrust/models/log_fetch_response.rb', line 140 optional :prompt_tokens, Integer |
#start ⇒ Float
A unix timestamp recording when the section of code which produced the project logs event started
145 |
# File 'lib/braintrust/models/log_fetch_response.rb', line 145 optional :start, Float |
#tokens ⇒ Integer
The total number of tokens in the input and output of the project logs event.
150 |
# File 'lib/braintrust/models/log_fetch_response.rb', line 150 optional :tokens, Integer |