Class Observation.Builder
- All Implemented Interfaces:
Observation._FinalStage,Observation.EnvironmentStage,Observation.IdStage,Observation.InputStage,Observation.LevelStage,Observation.MetadataStage,Observation.ModelParametersStage,Observation.OutputStage,Observation.StartTimeStage,Observation.TypeStage,Observation.UsageStage
- Enclosing class:
Observation
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()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(Observation other) The unique identifier of the observationThe input data of the observationlevel(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 observationmodelParameters(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 observationparentObservationId(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 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 observationThe 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 interfaceObservation.IdStage
-
id
The unique identifier of the observation
The unique identifier of the observation
- Specified by:
idin interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.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 interfaceObservation.EnvironmentStage- 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 interfaceObservation._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 interfaceObservation._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 interfaceObservation._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 interfaceObservation._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 interfaceObservation._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 interfaceObservation._FinalStage
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservation._FinalStage
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservation._FinalStage
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservation._FinalStage
-
version
The version of the observation
- Specified by:
versionin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
The version of the observation
- Specified by:
versionin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
The version of the observation
- Specified by:
versionin interfaceObservation._FinalStage
-
model
The model used for the observation
- Specified by:
modelin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
The model used for the observation
- Specified by:
modelin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
The model used for the observation
- Specified by:
modelin interfaceObservation._FinalStage
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservation._FinalStage
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservation._FinalStage
-
name
The name of the observation
- Specified by:
namein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the observation
- Specified by:
namein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the observation
- Specified by:
namein interfaceObservation._FinalStage
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservation._FinalStage
-
build
- Specified by:
buildin interfaceObservation._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceObservation._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceObservation._FinalStage
-