Class ExperimentEvent.Metrics
-
- All Implemented Interfaces:
public final class ExperimentEvent.MetricsMetrics are numerical measurements tracking the execution of the code that produced the experiment event. Use "start" and "end" to track the time span over which the experiment event was produced
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExperimentEvent.Metrics.BuilderA builder for Metrics.
-
Method Summary
Modifier and Type Method Description final JsonValue_callerFilename()This metric is deprecated final JsonValue_callerFunctionname()This metric is deprecated final JsonValue_callerLineno()This metric is deprecated final Optional<Long>completionTokens()The number of tokens in the completion generated by the model (only set if this is an LLM span) final Optional<Double>end()A unix timestamp recording when the section of code which produced the experiment event finished final Optional<Long>promptTokens()The number of tokens in the prompt used to generate the experiment event (only set if this is an LLM span) final Optional<Double>start()A unix timestamp recording when the section of code which produced the experiment event started final Optional<Long>tokens()The total number of tokens in the input and output of the experiment event. final JsonField<Long>_completionTokens()Returns the raw JSON value of completionTokens. final JsonField<Double>_end()Returns the raw JSON value of end. final JsonField<Long>_promptTokens()Returns the raw JSON value of promptTokens. final JsonField<Double>_start()Returns the raw JSON value of start. final JsonField<Long>_tokens()Returns the raw JSON value of tokens. final Map<String, JsonValue>_additionalProperties()final ExperimentEvent.Metrics.BuildertoBuilder()final ExperimentEvent.Metricsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ExperimentEvent.Metrics.Builderbuilder()Returns a mutable builder for constructing an instance of Metrics. -
-
Method Detail
-
_callerFilename
final JsonValue _callerFilename()
This metric is deprecated
-
_callerFunctionname
final JsonValue _callerFunctionname()
This metric is deprecated
-
_callerLineno
final JsonValue _callerLineno()
This metric is deprecated
-
completionTokens
final Optional<Long> completionTokens()
The number of tokens in the completion generated by the model (only set if this is an LLM span)
-
end
final Optional<Double> end()
A unix timestamp recording when the section of code which produced the experiment event finished
-
promptTokens
final Optional<Long> promptTokens()
The number of tokens in the prompt used to generate the experiment event (only set if this is an LLM span)
-
start
final Optional<Double> start()
A unix timestamp recording when the section of code which produced the experiment event started
-
tokens
final Optional<Long> tokens()
The total number of tokens in the input and output of the experiment event.
-
_completionTokens
final JsonField<Long> _completionTokens()
Returns the raw JSON value of completionTokens.
Unlike completionTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_end
final JsonField<Double> _end()
Returns the raw JSON value of end.
Unlike end, this method doesn't throw if the JSON field has an unexpected type.
-
_promptTokens
final JsonField<Long> _promptTokens()
Returns the raw JSON value of promptTokens.
Unlike promptTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_start
final JsonField<Double> _start()
Returns the raw JSON value of start.
Unlike start, this method doesn't throw if the JSON field has an unexpected type.
-
_tokens
final JsonField<Long> _tokens()
Returns the raw JSON value of tokens.
Unlike tokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ExperimentEvent.Metrics.Builder toBuilder()
-
validate
final ExperimentEvent.Metrics validate()
-
builder
final static ExperimentEvent.Metrics.Builder builder()
Returns a mutable builder for constructing an instance of Metrics.
-
-
-
-