Class ThreadQueryParams
-
- All Implemented Interfaces:
-
com.langchain.smith.core.Params
public final class ThreadQueryParams implements Params
Alpha: The request and response contract may change; Query threads within a project (session), with cursor-based pagination. Returns threads matching the given time range and optional filter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThreadQueryParams.BuilderA builder for ThreadQueryParams.
public final classThreadQueryParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<String>cursor()cursoris the opaque string from a previous response'snext_cursor.final Optional<String>filter()filternarrows which threads are returned, using a LangSmith filter expression evaluated against each thread's root run.final Optional<OffsetDateTime>maxStartTime()max_start_timeis the exclusive upper bound on thread activity (RFC3339 date-time).final Optional<OffsetDateTime>minStartTime()min_start_timeis the inclusive lower bound on thread activity (RFC3339 date-time).final Optional<Long>pageSize()page_sizeis the maximum number of threads to return in this response.final Optional<String>projectId()project_idis the tracing project UUID.final JsonField<String>_cursor()Returns the raw JSON value of cursor. final JsonField<String>_filter()Returns the raw JSON value of filter. final JsonField<OffsetDateTime>_maxStartTime()Returns the raw JSON value of maxStartTime. final JsonField<OffsetDateTime>_minStartTime()Returns the raw JSON value of minStartTime. final JsonField<Long>_pageSize()Returns the raw JSON value of pageSize. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final ThreadQueryParams.BuildertoBuilder()final ThreadQueryParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThreadQueryParamsnone()final static ThreadQueryParams.Builderbuilder()Returns a mutable builder for constructing an instance of ThreadQueryParams. -
-
Method Detail
-
cursor
final Optional<String> cursor()
cursoris the opaque string from a previous response'snext_cursor. Omit on the first request; pass the returned cursor to fetch the next page.
-
filter
final Optional<String> filter()
filternarrows which threads are returned, using a LangSmith filter expression evaluated against each thread's root run. For example: has(tags, "production") or eq(status, "error"). See https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.
-
maxStartTime
final Optional<OffsetDateTime> maxStartTime()
max_start_timeis the exclusive upper bound on thread activity (RFC3339 date-time). Defaults to now (UTC) when omitted.
-
minStartTime
final Optional<OffsetDateTime> minStartTime()
min_start_timeis the inclusive lower bound on thread activity (RFC3339 date-time). Defaults to 1 day before now (UTC) when omitted.
-
pageSize
final Optional<Long> pageSize()
page_sizeis the maximum number of threads to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set. The response may contain fewer threads thanpage_sizeeven whennext_cursoris non-null.
-
_cursor
final JsonField<String> _cursor()
Returns the raw JSON value of cursor.
Unlike cursor, this method doesn't throw if the JSON field has an unexpected type.
-
_filter
final JsonField<String> _filter()
Returns the raw JSON value of filter.
Unlike filter, this method doesn't throw if the JSON field has an unexpected type.
-
_maxStartTime
final JsonField<OffsetDateTime> _maxStartTime()
Returns the raw JSON value of maxStartTime.
Unlike maxStartTime, this method doesn't throw if the JSON field has an unexpected type.
-
_minStartTime
final JsonField<OffsetDateTime> _minStartTime()
Returns the raw JSON value of minStartTime.
Unlike minStartTime, this method doesn't throw if the JSON field has an unexpected type.
-
_pageSize
final JsonField<Long> _pageSize()
Returns the raw JSON value of pageSize.
Unlike pageSize, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final ThreadQueryParams.Builder toBuilder()
-
_body
final ThreadQueryParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
none
final static ThreadQueryParams none()
-
builder
final static ThreadQueryParams.Builder builder()
Returns a mutable builder for constructing an instance of ThreadQueryParams.
-
-
-
-