Class SessionListParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class SessionListParams implements Params
List Sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionListParams.BuilderA builder for SessionListParams.
public final classSessionListParams.OrderSort direction for results, ordered by created_at. Defaults to desc (newest first).
public final classSessionListParams.StatusSessionStatus enum
-
Method Summary
Modifier and Type Method Description final Optional<String>agentId()Filter sessions created with this agent ID. final Optional<Integer>agentVersion()Filter by agent version. final Optional<OffsetDateTime>createdAtGt()Return sessions created after this time (exclusive). final Optional<OffsetDateTime>createdAtGte()Return sessions created at or after this time (inclusive). final Optional<OffsetDateTime>createdAtLt()Return sessions created before this time (exclusive). final Optional<OffsetDateTime>createdAtLte()Return sessions created at or before this time (inclusive). final Optional<String>deploymentId()Filter sessions created by this deployment ID. final Optional<Boolean>includeArchived()When true, includes archived sessions. final Optional<Integer>limit()Maximum number of results to return. final Optional<String>memoryStoreId()Filter sessions whose resources contain a memory_store with this memory store ID. final Optional<SessionListParams.Order>order()Sort direction for results, ordered by created_at. final Optional<String>page()Opaque pagination cursor from a previous response. final Optional<List<SessionListParams.Status>>statuses()Filter by session status. final Optional<List<AnthropicBeta>>betas()Optional header to specify the beta version(s) you want to use. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SessionListParams.BuildertoBuilder()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 SessionListParamsnone()final static SessionListParams.Builderbuilder()Returns a mutable builder for constructing an instance of SessionListParams. -
-
Method Detail
-
agentVersion
final Optional<Integer> agentVersion()
Filter by agent version. Only applies when agent_id is also set.
-
createdAtGt
final Optional<OffsetDateTime> createdAtGt()
Return sessions created after this time (exclusive).
-
createdAtGte
final Optional<OffsetDateTime> createdAtGte()
Return sessions created at or after this time (inclusive).
-
createdAtLt
final Optional<OffsetDateTime> createdAtLt()
Return sessions created before this time (exclusive).
-
createdAtLte
final Optional<OffsetDateTime> createdAtLte()
Return sessions created at or before this time (inclusive).
-
deploymentId
final Optional<String> deploymentId()
Filter sessions created by this deployment ID.
-
includeArchived
final Optional<Boolean> includeArchived()
When true, includes archived sessions. Default: false (exclude archived).
-
memoryStoreId
final Optional<String> memoryStoreId()
Filter sessions whose resources contain a memory_store with this memory store ID.
-
order
final Optional<SessionListParams.Order> order()
Sort direction for results, ordered by created_at. Defaults to desc (newest first).
-
statuses
final Optional<List<SessionListParams.Status>> statuses()
Filter by session status. Repeat the parameter to match any of multiple statuses.
-
betas
final Optional<List<AnthropicBeta>> betas()
Optional header to specify the beta version(s) you want to use.
-
_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 SessionListParams.Builder toBuilder()
-
_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 SessionListParams none()
-
builder
final static SessionListParams.Builder builder()
Returns a mutable builder for constructing an instance of SessionListParams.
-
-
-
-