Class: Braintrust::Models::LogFetchResponse::Event::Metrics

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

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

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)


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

Returns:

  • (Float)


135
# File 'lib/braintrust/models/log_fetch_response.rb', line 135

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)


140
# File 'lib/braintrust/models/log_fetch_response.rb', line 140

optional :prompt_tokens, Integer

#startFloat

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

Returns:

  • (Float)


145
# File 'lib/braintrust/models/log_fetch_response.rb', line 145

optional :start, Float

#tokensInteger

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

Returns:

  • (Integer)


150
# File 'lib/braintrust/models/log_fetch_response.rb', line 150

optional :tokens, Integer