Class ObservationsView.Builder
- All Implemented Interfaces:
ObservationsView._FinalStage,ObservationsView.EnvironmentStage,ObservationsView.IdStage,ObservationsView.InputStage,ObservationsView.LevelStage,ObservationsView.MetadataStage,ObservationsView.ModelParametersStage,ObservationsView.OutputStage,ObservationsView.StartTimeStage,ObservationsView.TypeStage,ObservationsView.UsageStage
- Enclosing class:
ObservationsView
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()calculatedInputCost(Nullable<Double> calculatedInputCost) (Deprecated.calculatedInputCost(Double calculatedInputCost) (Deprecated.calculatedInputCost(Optional<Double> calculatedInputCost) (Deprecated.calculatedOutputCost(Nullable<Double> calculatedOutputCost) (Deprecated.calculatedOutputCost(Double calculatedOutputCost) (Deprecated.calculatedOutputCost(Optional<Double> calculatedOutputCost) (Deprecated.calculatedTotalCost(Nullable<Double> calculatedTotalCost) (Deprecated.calculatedTotalCost(Double calculatedTotalCost) (Deprecated.calculatedTotalCost(Optional<Double> calculatedTotalCost) (Deprecated.completionStartTime(Nullable<OffsetDateTime> completionStartTime) The completion start time of the observationcompletionStartTime(OffsetDateTime completionStartTime) The completion start time of the observationcompletionStartTime(Optional<OffsetDateTime> completionStartTime) The completion start time of the observationcostDetails(String key, Double value) The cost details of the observation.costDetails(Map<String, Double> costDetails) The cost details of the observation.endTime(Nullable<OffsetDateTime> endTime) The end time of the observation.endTime(OffsetDateTime endTime) The end time of the observation.endTime(Optional<OffsetDateTime> endTime) The end time of the observation.environment(String environment) The environment from which this observation originated.from(ObservationsView other) The unique identifier of the observationThe input data of the observationinputPrice(Nullable<Double> inputPrice) The price of the input in USDinputPrice(Double inputPrice) The price of the input in USDinputPrice(Optional<Double> inputPrice) The price of the input in USDThe latency in seconds.The latency in seconds.The latency in seconds.level(ObservationLevel level) The level of the observationAdditional metadata of the observationThe model used for the observationThe model used for the observationThe model used for the observationThe unique identifier of the modelThe unique identifier of the modelThe unique identifier of the modelmodelParameters(Object modelParameters) The parameters of the model used for the observationThe name of the observationThe name of the observationThe name of the observationThe output data of the observationoutputPrice(Nullable<Double> outputPrice) The price of the output in USD.outputPrice(Double outputPrice) The price of the output in USD.outputPrice(Optional<Double> outputPrice) The price of the output in USD.parentObservationId(Nullable<String> parentObservationId) The parent observation IDparentObservationId(String parentObservationId) The parent observation IDparentObservationId(Optional<String> parentObservationId) The parent observation IDThe prompt ID associated with the observationThe prompt ID associated with the observationThe prompt ID associated with the observationpromptName(Nullable<String> promptName) The name of the prompt associated with the observationpromptName(String promptName) The name of the prompt associated with the observationpromptName(Optional<String> promptName) The name of the prompt associated with the observationpromptVersion(Nullable<Integer> promptVersion) The version of the prompt associated with the observationpromptVersion(Integer promptVersion) The version of the prompt associated with the observationpromptVersion(Optional<Integer> promptVersion) The version of the prompt associated with the observationputAllCostDetails(Map<String, Double> costDetails) The cost details of the observation.putAllUsageDetails(Map<String, Integer> usageDetails) The usage details of the observation.startTime(OffsetDateTime startTime) The start time of the observationstatusMessage(Nullable<String> statusMessage) The status message of the observationstatusMessage(String statusMessage) The status message of the observationstatusMessage(Optional<String> statusMessage) The status message of the observationtimeToFirstToken(Nullable<Double> timeToFirstToken) The time to the first token in secondstimeToFirstToken(Double timeToFirstToken) The time to the first token in secondstimeToFirstToken(Optional<Double> timeToFirstToken) The time to the first token in secondstotalPrice(Nullable<Double> totalPrice) The total price in USD.totalPrice(Double totalPrice) The total price in USD.totalPrice(Optional<Double> totalPrice) The total price in USD.The trace ID associated with the observationThe trace ID associated with the observationThe trace ID associated with the observationThe type of the observation(Deprecated.usageDetails(String key, Integer value) The usage details of the observation.usageDetails(Map<String, Integer> usageDetails) The usage details of the observation.The version of the observationThe version of the observationThe version of the observation
-
Method Details
-
from
- Specified by:
fromin interfaceObservationsView.IdStage
-
id
The unique identifier of the observation
The unique identifier of the observation
- Specified by:
idin interfaceObservationsView.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
The type of the observation
The type of the observation
- Specified by:
typein interfaceObservationsView.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startTime
The start time of the observation
The start time of the observation
- Specified by:
startTimein interfaceObservationsView.StartTimeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelParameters
The parameters of the model used for the observation
The parameters of the model used for the observation
- Specified by:
modelParametersin interfaceObservationsView.ModelParametersStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
input
The input data of the observation
The input data of the observation
- Specified by:
inputin interfaceObservationsView.InputStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
Additional metadata of the observation
Additional metadata of the observation
- Specified by:
metadatain interfaceObservationsView.MetadataStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
output
The output data of the observation
The output data of the observation
- Specified by:
outputin interfaceObservationsView.OutputStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usage
(Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation
(Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation
- Specified by:
usagein interfaceObservationsView.UsageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
level
The level of the observation
The level of the observation
- Specified by:
levelin interfaceObservationsView.LevelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
- Specified by:
environmentin interfaceObservationsView.EnvironmentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timeToFirstToken
The time to the first token in seconds
- Specified by:
timeToFirstTokenin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timeToFirstToken
The time to the first token in seconds
- Specified by:
timeToFirstTokenin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timeToFirstToken
The time to the first token in seconds
- Specified by:
timeToFirstTokenin interfaceObservationsView._FinalStage
-
latency
The latency in seconds.
- Specified by:
latencyin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
latency
The latency in seconds.
- Specified by:
latencyin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
latency
The latency in seconds.
- Specified by:
latencyin interfaceObservationsView._FinalStage
-
calculatedTotalCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD
- Specified by:
calculatedTotalCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedTotalCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD
- Specified by:
calculatedTotalCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedTotalCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD
- Specified by:
calculatedTotalCostin interfaceObservationsView._FinalStage
-
calculatedOutputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD
- Specified by:
calculatedOutputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedOutputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD
- Specified by:
calculatedOutputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedOutputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD
- Specified by:
calculatedOutputCostin interfaceObservationsView._FinalStage
-
calculatedInputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD
- Specified by:
calculatedInputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedInputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD
- Specified by:
calculatedInputCostin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
calculatedInputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD
- Specified by:
calculatedInputCostin interfaceObservationsView._FinalStage
-
totalPrice
The total price in USD.
- Specified by:
totalPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalPrice
The total price in USD.
- Specified by:
totalPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalPrice
The total price in USD.
- Specified by:
totalPricein interfaceObservationsView._FinalStage
-
outputPrice
The price of the output in USD.
- Specified by:
outputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
outputPrice
The price of the output in USD.
- Specified by:
outputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
outputPrice
The price of the output in USD.
- Specified by:
outputPricein interfaceObservationsView._FinalStage
-
inputPrice
The price of the input in USD
- Specified by:
inputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputPrice
The price of the input in USD
- Specified by:
inputPricein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputPrice
The price of the input in USD
- Specified by:
inputPricein interfaceObservationsView._FinalStage
-
modelId
The unique identifier of the model
- Specified by:
modelIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelId
The unique identifier of the model
- Specified by:
modelIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelId
The unique identifier of the model
- Specified by:
modelIdin interfaceObservationsView._FinalStage
-
promptVersion
The version of the prompt associated with the observation
- Specified by:
promptVersionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptVersion
The version of the prompt associated with the observation
- Specified by:
promptVersionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptVersion
The version of the prompt associated with the observation
- Specified by:
promptVersionin interfaceObservationsView._FinalStage
-
promptName
The name of the prompt associated with the observation
- Specified by:
promptNamein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptName
The name of the prompt associated with the observation
- Specified by:
promptNamein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptName
The name of the prompt associated with the observation
- Specified by:
promptNamein interfaceObservationsView._FinalStage
-
costDetails
The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
- Specified by:
costDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllCostDetails
The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
- Specified by:
putAllCostDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
costDetails
The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
- Specified by:
costDetailsin interfaceObservationsView._FinalStage
-
usageDetails
The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
- Specified by:
usageDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllUsageDetails
The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
- Specified by:
putAllUsageDetailsin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usageDetails
The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
- Specified by:
usageDetailsin interfaceObservationsView._FinalStage
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservationsView._FinalStage
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservationsView._FinalStage
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservationsView._FinalStage
-
version
The version of the observation
- Specified by:
versionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
The version of the observation
- Specified by:
versionin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
The version of the observation
- Specified by:
versionin interfaceObservationsView._FinalStage
-
model
The model used for the observation
- Specified by:
modelin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
The model used for the observation
- Specified by:
modelin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
The model used for the observation
- Specified by:
modelin interfaceObservationsView._FinalStage
-
completionStartTime
public ObservationsView._FinalStage completionStartTime(Nullable<OffsetDateTime> completionStartTime) The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
public ObservationsView._FinalStage completionStartTime(Optional<OffsetDateTime> completionStartTime) The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservationsView._FinalStage
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservationsView._FinalStage
-
name
The name of the observation
- Specified by:
namein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the observation
- Specified by:
namein interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the observation
- Specified by:
namein interfaceObservationsView._FinalStage
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservationsView._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservationsView._FinalStage
-
build
- Specified by:
buildin interfaceObservationsView._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceObservationsView._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceObservationsView._FinalStage
-