Class Observation
java.lang.Object
com.langfuse.client.resources.commons.types.Observation
- All Implemented Interfaces:
IObservation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
-
Method Details
-
getId
- Specified by:
getIdin interfaceIObservation- Returns:
- The unique identifier of the observation
-
getTraceId
- Specified by:
getTraceIdin interfaceIObservation- Returns:
- The trace ID associated with the observation
-
getType
- Specified by:
getTypein interfaceIObservation- Returns:
- The type of the observation
-
getName
- Specified by:
getNamein interfaceIObservation- Returns:
- The name of the observation
-
getStartTime
- Specified by:
getStartTimein interfaceIObservation- Returns:
- The start time of the observation
-
getEndTime
- Specified by:
getEndTimein interfaceIObservation- Returns:
- The end time of the observation.
-
getCompletionStartTime
- Specified by:
getCompletionStartTimein interfaceIObservation- Returns:
- The completion start time of the observation
-
getModel
- Specified by:
getModelin interfaceIObservation- Returns:
- The model used for the observation
-
getModelParameters
- Specified by:
getModelParametersin interfaceIObservation- Returns:
- The parameters of the model used for the observation
-
getInput
- Specified by:
getInputin interfaceIObservation- Returns:
- The input data of the observation
-
getVersion
- Specified by:
getVersionin interfaceIObservation- Returns:
- The version of the observation
-
getMetadata
- Specified by:
getMetadatain interfaceIObservation- Returns:
- Additional metadata of the observation
-
getOutput
- Specified by:
getOutputin interfaceIObservation- Returns:
- The output data of the observation
-
getUsage
- Specified by:
getUsagein interfaceIObservation- Returns:
- (Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation
-
getLevel
- Specified by:
getLevelin interfaceIObservation- Returns:
- The level of the observation
-
getStatusMessage
- Specified by:
getStatusMessagein interfaceIObservation- Returns:
- The status message of the observation
-
getParentObservationId
- Specified by:
getParentObservationIdin interfaceIObservation- Returns:
- The parent observation ID
-
getPromptId
- Specified by:
getPromptIdin interfaceIObservation- Returns:
- The prompt ID associated with the observation
-
getUsageDetails
- Specified by:
getUsageDetailsin interfaceIObservation- Returns:
- 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.
-
getCostDetails
- Specified by:
getCostDetailsin interfaceIObservation- Returns:
- 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.
-
getEnvironment
- Specified by:
getEnvironmentin interfaceIObservation- Returns:
- The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-