Class CategoricalScore.Builder
- All Implemented Interfaces:
CategoricalScore._FinalStage,CategoricalScore.CreatedAtStage,CategoricalScore.EnvironmentStage,CategoricalScore.IdStage,CategoricalScore.MetadataStage,CategoricalScore.NameStage,CategoricalScore.SourceStage,CategoricalScore.StringValueStage,CategoricalScore.TimestampStage,CategoricalScore.UpdatedAtStage,CategoricalScore.ValueStage
- Enclosing class:
CategoricalScore
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) authorUserId(Nullable<String> authorUserId) The user ID of the authorauthorUserId(String authorUserId) The user ID of the authorauthorUserId(Optional<String> authorUserId) The user ID of the authorbuild()Comment on the scoreComment on the scoreComment on the scoreReference a score config on a score.Reference a score config on a score.Reference a score config on a score.createdAt(OffsetDateTime createdAt) datasetRunId(Nullable<String> datasetRunId) The dataset run ID associated with the scoredatasetRunId(String datasetRunId) The dataset run ID associated with the scoredatasetRunId(Optional<String> datasetRunId) The dataset run ID associated with the scoreenvironment(String environment) The environment from which this score originated.from(CategoricalScore other) Metadata associated with the scoreobservationId(Nullable<String> observationId) The observation ID associated with the scoreobservationId(String observationId) The observation ID associated with the scoreobservationId(Optional<String> observationId) The observation ID associated with the scoreThe annotation queue referenced by the score.The annotation queue referenced by the score.The annotation queue referenced by the score.The session ID associated with the scoreThe session ID associated with the scoreThe session ID associated with the scoresource(ScoreSource source) stringValue(String stringValue) The string representation of the score value.timestamp(OffsetDateTime timestamp) The trace ID associated with the scoreThe trace ID associated with the scoreThe trace ID associated with the scoreupdatedAt(OffsetDateTime updatedAt) value(double value) Represents the numeric category mapping of the stringValue.
-
Method Details
-
from
- Specified by:
fromin interfaceCategoricalScore.ValueStage
-
value
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
Represents the numeric category mapping of the stringValue. If no config is linked, defaults to 0.
- Specified by:
valuein interfaceCategoricalScore.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
stringValue
The string representation of the score value. If no config is linked, can be any string. Otherwise, must map to a config category
The string representation of the score value. If no config is linked, can be any string. Otherwise, must map to a config category
- Specified by:
stringValuein interfaceCategoricalScore.StringValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceCategoricalScore.IdStage
-
name
- Specified by:
namein interfaceCategoricalScore.NameStage
-
source
- Specified by:
sourcein interfaceCategoricalScore.SourceStage
-
timestamp
- Specified by:
timestampin interfaceCategoricalScore.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceCategoricalScore.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceCategoricalScore.UpdatedAtStage
-
metadata
Metadata associated with the score
Metadata associated with the score
- Specified by:
metadatain interfaceCategoricalScore.MetadataStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
- Specified by:
environmentin interfaceCategoricalScore.EnvironmentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
- Specified by:
queueIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
- Specified by:
queueIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue.
- Specified by:
queueIdin interfaceCategoricalScore._FinalStage
-
configId
Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
- Specified by:
configIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
- Specified by:
configIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
- Specified by:
configIdin interfaceCategoricalScore._FinalStage
-
comment
Comment on the score
- Specified by:
commentin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
comment
Comment on the score
- Specified by:
commentin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
comment
Comment on the score
- Specified by:
commentin interfaceCategoricalScore._FinalStage
-
authorUserId
The user ID of the author
- Specified by:
authorUserIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorUserId
The user ID of the author
- Specified by:
authorUserIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorUserId
The user ID of the author
- Specified by:
authorUserIdin interfaceCategoricalScore._FinalStage
-
datasetRunId
The dataset run ID associated with the score
- Specified by:
datasetRunIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
datasetRunId
The dataset run ID associated with the score
- Specified by:
datasetRunIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
datasetRunId
The dataset run ID associated with the score
- Specified by:
datasetRunIdin interfaceCategoricalScore._FinalStage
-
observationId
The observation ID associated with the score
- Specified by:
observationIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observationId
The observation ID associated with the score
- Specified by:
observationIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observationId
The observation ID associated with the score
- Specified by:
observationIdin interfaceCategoricalScore._FinalStage
-
sessionId
The session ID associated with the score
- Specified by:
sessionIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sessionId
The session ID associated with the score
- Specified by:
sessionIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sessionId
The session ID associated with the score
- Specified by:
sessionIdin interfaceCategoricalScore._FinalStage
-
traceId
The trace ID associated with the score
- Specified by:
traceIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the score
- Specified by:
traceIdin interfaceCategoricalScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
The trace ID associated with the score
- Specified by:
traceIdin interfaceCategoricalScore._FinalStage
-
build
- Specified by:
buildin interfaceCategoricalScore._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceCategoricalScore._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceCategoricalScore._FinalStage
-