Class ProjectLogsEvent.Metrics.Builder
-
- All Implemented Interfaces:
public final class ProjectLogsEvent.Metrics.BuilderA builder for Metrics.
-
-
Method Summary
-
-
Method Detail
-
callerFilename
final ProjectLogsEvent.Metrics.Builder callerFilename(JsonValue callerFilename)
This metric is deprecated
-
callerFunctionname
final ProjectLogsEvent.Metrics.Builder callerFunctionname(JsonValue callerFunctionname)
This metric is deprecated
-
callerLineno
final ProjectLogsEvent.Metrics.Builder callerLineno(JsonValue callerLineno)
This metric is deprecated
-
completionTokens
final ProjectLogsEvent.Metrics.Builder completionTokens(Long completionTokens)
The number of tokens in the completion generated by the model (only set if this is an LLM span)
-
completionTokens
final ProjectLogsEvent.Metrics.Builder completionTokens(Long completionTokens)
Alias for Builder.completionTokens.
This unboxed primitive overload exists for backwards compatibility.
-
completionTokens
final ProjectLogsEvent.Metrics.Builder completionTokens(Optional<Long> completionTokens)
Alias for calling Builder.completionTokens with
completionTokens.orElse(null).
-
completionTokens
final ProjectLogsEvent.Metrics.Builder completionTokens(JsonField<Long> completionTokens)
Sets Builder.completionTokens to an arbitrary JSON value.
You should usually call Builder.completionTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
end
final ProjectLogsEvent.Metrics.Builder end(Double end)
A unix timestamp recording when the section of code which produced the project logs event finished
-
end
final ProjectLogsEvent.Metrics.Builder end(Double end)
Alias for Builder.end.
This unboxed primitive overload exists for backwards compatibility.
-
end
final ProjectLogsEvent.Metrics.Builder end(Optional<Double> end)
Alias for calling Builder.end with
end.orElse(null).
-
end
final ProjectLogsEvent.Metrics.Builder end(JsonField<Double> end)
Sets Builder.end to an arbitrary JSON value.
You should usually call Builder.end with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptTokens
final ProjectLogsEvent.Metrics.Builder promptTokens(Long promptTokens)
The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span)
-
promptTokens
final ProjectLogsEvent.Metrics.Builder promptTokens(Long promptTokens)
Alias for Builder.promptTokens.
This unboxed primitive overload exists for backwards compatibility.
-
promptTokens
final ProjectLogsEvent.Metrics.Builder promptTokens(Optional<Long> promptTokens)
Alias for calling Builder.promptTokens with
promptTokens.orElse(null).
-
promptTokens
final ProjectLogsEvent.Metrics.Builder promptTokens(JsonField<Long> promptTokens)
Sets Builder.promptTokens to an arbitrary JSON value.
You should usually call Builder.promptTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
start
final ProjectLogsEvent.Metrics.Builder start(Double start)
A unix timestamp recording when the section of code which produced the project logs event started
-
start
final ProjectLogsEvent.Metrics.Builder start(Double start)
Alias for Builder.start.
This unboxed primitive overload exists for backwards compatibility.
-
start
final ProjectLogsEvent.Metrics.Builder start(Optional<Double> start)
Alias for calling Builder.start with
start.orElse(null).
-
start
final ProjectLogsEvent.Metrics.Builder start(JsonField<Double> start)
Sets Builder.start to an arbitrary JSON value.
You should usually call Builder.start with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tokens
final ProjectLogsEvent.Metrics.Builder tokens(Long tokens)
The total number of tokens in the input and output of the project logs event.
-
tokens
final ProjectLogsEvent.Metrics.Builder tokens(Long tokens)
Alias for Builder.tokens.
This unboxed primitive overload exists for backwards compatibility.
-
tokens
final ProjectLogsEvent.Metrics.Builder tokens(Optional<Long> tokens)
Alias for calling Builder.tokens with
tokens.orElse(null).
-
tokens
final ProjectLogsEvent.Metrics.Builder tokens(JsonField<Long> tokens)
Sets Builder.tokens to an arbitrary JSON value.
You should usually call Builder.tokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProjectLogsEvent.Metrics.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectLogsEvent.Metrics.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectLogsEvent.Metrics.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectLogsEvent.Metrics.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectLogsEvent.Metrics.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectLogsEvent.Metrics build()
Returns an immutable instance of Metrics.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-