Class GetObservationsV2Request
java.lang.Object
com.langfuse.client.resources.observationsv2.requests.GetObservationsV2Request
-
Method Details
-
getEnvironment
- Returns:
- Optional filter for observations where the environment is one of the provided values.
-
getFields
- Returns:
- Comma-separated list of field groups to include in the response.
Available groups: core, basic, time, io, metadata, model, usage, prompt, metrics.
If not specified,
coreandbasicfield groups are returned. Example: "basic,usage,model"
-
getExpandMetadata
- Returns:
- Comma-separated list of metadata keys to return non-truncated. By default, metadata values over 200 characters are truncated. Use this parameter to retrieve full values for specific keys. Example: "key1,key2"
-
getLimit
- Returns:
- Number of items to return per page. Maximum 1000, default 50.
-
getCursor
- Returns:
- Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page.
-
getParseIoAsJson
- Returns:
- Deprecated. Setting this to
truewill return a 400 error. Input/output fields are always returned as raw strings. Remove this parameter or set it tofalse.
-
getName
-
getUserId
-
getType
- Returns:
- Filter by observation type (e.g., "GENERATION", "SPAN", "EVENT", "AGENT", "TOOL", "CHAIN", "RETRIEVER", "EVALUATOR", "EMBEDDING", "GUARDRAIL")
-
getTraceId
-
getLevel
- Returns:
- Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR").
-
getParentObservationId
-
getFromStartTime
- Returns:
- Retrieve only observations with a start_time on or after this datetime (ISO 8601).
-
getToStartTime
- Returns:
- Retrieve only observations with a start_time before this datetime (ISO 8601).
-
getVersion
- Returns:
- Optional filter to only include observations with a certain version.
-
getFilter
- Returns:
- JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-