Class GetObservationsV2Request.Builder
- Enclosing class:
GetObservationsV2Request
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Base64-encoded cursor for pagination.environment(String environment) environment(List<String> environment) environment(Optional<List<String>> environment) Optional filter for observations where the environment is one of the provided values.expandMetadata(String expandMetadata) expandMetadata(Optional<String> expandMetadata) Comma-separated list of metadata keys to return non-truncated.Comma-separated list of field groups to include in the response.JSON string containing an array of filter conditions.from(GetObservationsV2Request other) fromStartTime(OffsetDateTime fromStartTime) fromStartTime(Optional<OffsetDateTime> fromStartTime) Retrieve only observations with a start_time on or after this datetime (ISO 8601).level(ObservationLevel level) level(Optional<ObservationLevel> level) Optional filter for observations with a specific level (e.g.Number of items to return per page.parentObservationId(String parentObservationId) parentObservationId(Optional<String> parentObservationId) parseIoAsJson(Boolean parseIoAsJson) parseIoAsJson(Optional<Boolean> parseIoAsJson) Deprecated. Setting this totruewill return a 400 error.toStartTime(OffsetDateTime toStartTime) toStartTime(Optional<OffsetDateTime> toStartTime) Retrieve only observations with a start_time before this datetime (ISO 8601).Filter by observation type (e.g., "GENERATION", "SPAN", "EVENT", "AGENT", "TOOL", "CHAIN", "RETRIEVER", "EVALUATOR", "EMBEDDING", "GUARDRAIL")Optional filter to only include observations with a certain version.
-
Method Details
-
from
-
environment
Optional filter for observations where the environment is one of the provided values.
-
environment
-
environment
-
fields
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" -
fields
-
expandMetadata
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"
-
expandMetadata
-
limit
Number of items to return per page. Maximum 1000, default 50.
-
limit
-
cursor
Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page.
-
cursor
-
parseIoAsJson
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. -
parseIoAsJson
-
name
-
name
-
userId
-
userId
-
type
Filter by observation type (e.g., "GENERATION", "SPAN", "EVENT", "AGENT", "TOOL", "CHAIN", "RETRIEVER", "EVALUATOR", "EMBEDDING", "GUARDRAIL")
-
type
-
traceId
-
traceId
-
level
Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR").
-
level
-
parentObservationId
-
parentObservationId
-
fromStartTime
Retrieve only observations with a start_time on or after this datetime (ISO 8601).
-
fromStartTime
-
toStartTime
Retrieve only observations with a start_time before this datetime (ISO 8601).
-
toStartTime
-
version
Optional filter to only include observations with a certain version.
-
version
-
filter
JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...). -
filter
-
build
-
additionalProperty
-
additionalProperties
public GetObservationsV2Request.Builder additionalProperties(Map<String, Object> additionalProperties)
-