Class GetScoresRequest
java.lang.Object
com.langfuse.client.resources.scorev2.requests.GetScoresRequest
-
Method Details
-
getEnvironment
- Returns:
- Optional filter for scores where the environment is one of the provided values.
-
getTraceTags
- Returns:
- Only scores linked to traces that include all of these tags will be returned.
-
getPage
- Returns:
- Page number, starts at 1.
-
getLimit
- Returns:
- Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
-
getUserId
- Returns:
- Retrieve only scores with this userId associated to the trace.
-
getName
- Returns:
- Retrieve only scores with this name.
-
getFromTimestamp
- Returns:
- Optional filter to only include scores created on or after a certain datetime (ISO 8601)
-
getToTimestamp
- Returns:
- Optional filter to only include scores created before a certain datetime (ISO 8601)
-
getSource
- Returns:
- Retrieve only scores from a specific source.
-
getOperator
- Returns:
- Retrieve only scores with <operator> value.
-
getValue
- Returns:
- Retrieve only scores with <operator> value.
-
getScoreIds
- Returns:
- Comma-separated list of score IDs to limit the results to.
-
getConfigId
- Returns:
- Retrieve only scores with a specific configId.
-
getSessionId
- Returns:
- Retrieve only scores with a specific sessionId.
-
getDatasetRunId
- Returns:
- Retrieve only scores with a specific datasetRunId.
-
getTraceId
- Returns:
- Retrieve only scores with a specific traceId.
-
getObservationId
- Returns:
- Comma-separated list of observation IDs to filter scores by.
-
getQueueId
- Returns:
- Retrieve only scores with a specific annotation queueId.
-
getDataType
- Returns:
- Retrieve only scores with a specific dataType.
-
getFields
- Returns:
- Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned.
-
getFilter
- Returns:
- A JSON stringified array of filter objects. Each object requires type, column, operator, and value. Supports filtering by score metadata using the stringObject type. Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}]. Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions. Supported operators for stringObject: =, contains, does not contain, starts with, ends with.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-