Class: Anthropic::Models::Beta::SessionListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::SessionListParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/session_list_params.rb,
sig/anthropic/models/beta/session_list_params.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#agent_id ⇒ String?
Filter sessions created with this agent ID.
-
#agent_version ⇒ Integer?
Filter by agent version.
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header. -
#created_at_gt ⇒ Time?
Return sessions created after this time (exclusive).
-
#created_at_gte ⇒ Time?
Return sessions created at or after this time (inclusive).
-
#created_at_lt ⇒ Time?
Return sessions created before this time (exclusive).
-
#created_at_lte ⇒ Time?
Return sessions created at or before this time (inclusive).
-
#deployment_id ⇒ String?
Filter sessions created by this deployment ID.
-
#include_archived ⇒ Boolean?
When true, includes archived sessions.
-
#limit ⇒ Integer?
Maximum number of results to return.
-
#memory_store_id ⇒ String?
Filter sessions whose resources contain a
memory_storewith this memory store ID. -
#order ⇒ Symbol, ...
Sort direction for results, ordered by
created_at. -
#page ⇒ String?
Opaque pagination cursor from a previous response.
-
#statuses ⇒ Array<Symbol, Anthropic::Models::Beta::SessionListParams::Status>?
Filter by session status.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_id: nil, agent_version: nil, created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, deployment_id: nil, include_archived: nil, limit: nil, memory_store_id: nil, order: nil, page: nil, statuses: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ SessionListParams
constructor
Some parameter documentations has been truncated, see SessionListParams for more details.
- #to_hash ⇒ { agent_id: String, agent_version: Integer, created_at_gt: Time, created_at_gte: Time, created_at_lt: Time, created_at_lte: Time, deployment_id: String, include_archived: bool, limit: Integer, memory_store_id: String, order: Anthropic::Models::Beta::SessionListParams::order, page: String, statuses: ::Array[Anthropic::Models::Beta::SessionListParams::status], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(agent_id: nil, agent_version: nil, created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, deployment_id: nil, include_archived: nil, limit: nil, memory_store_id: nil, order: nil, page: nil, statuses: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ SessionListParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::SessionListParams for more details.
|
|
# File 'lib/anthropic/models/beta/session_list_params.rb', line 111
|
Instance Attribute Details
#agent_id ⇒ String?
Filter sessions created with this agent ID.
15 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 15 optional :agent_id, String |
#agent_version ⇒ Integer?
Filter by agent version. Only applies when agent_id is also set.
21 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 21 optional :agent_version, Integer |
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send managed-agents-2026-04-01 in this
header.
98 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 98 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#created_at_gt ⇒ Time?
Return sessions created after this time (exclusive).
27 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 27 optional :created_at_gt, Time |
#created_at_gte ⇒ Time?
Return sessions created at or after this time (inclusive).
33 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 33 optional :created_at_gte, Time |
#created_at_lt ⇒ Time?
Return sessions created before this time (exclusive).
39 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 39 optional :created_at_lt, Time |
#created_at_lte ⇒ Time?
Return sessions created at or before this time (inclusive).
45 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 45 optional :created_at_lte, Time |
#deployment_id ⇒ String?
Filter sessions created by this deployment ID.
51 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 51 optional :deployment_id, String |
#include_archived ⇒ Boolean?
When true, includes archived sessions. Default: false (exclude archived).
57 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 57 optional :include_archived, Anthropic::Internal::Type::Boolean |
#limit ⇒ Integer?
Maximum number of results to return.
63 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 63 optional :limit, Integer |
#memory_store_id ⇒ String?
Filter sessions whose resources contain a memory_store with this memory store
ID.
70 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 70 optional :memory_store_id, String |
#order ⇒ Symbol, ...
Sort direction for results, ordered by created_at. Defaults to desc (newest
first).
77 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 77 optional :order, enum: -> { Anthropic::Beta::SessionListParams::Order } |
#page ⇒ String?
Opaque pagination cursor from a previous response.
83 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 83 optional :page, String |
#statuses ⇒ Array<Symbol, Anthropic::Models::Beta::SessionListParams::Status>?
Filter by session status. Repeat the parameter to match any of multiple statuses.
90 91 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 90 optional :statuses, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::SessionListParams::Status] } |
#workspace_id ⇒ String?
Optional header to select the Workspace for this request. The value is a
Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
109 |
# File 'lib/anthropic/models/beta/session_list_params.rb', line 109 optional :workspace_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/session_list_params.rb', line 155
|
Instance Method Details
#to_hash ⇒ { agent_id: String, agent_version: Integer, created_at_gt: Time, created_at_gte: Time, created_at_lt: Time, created_at_lte: Time, deployment_id: String, include_archived: bool, limit: Integer, memory_store_id: String, order: Anthropic::Models::Beta::SessionListParams::order, page: String, statuses: ::Array[Anthropic::Models::Beta::SessionListParams::status], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'sig/anthropic/models/beta/session_list_params.rbs', line 113
def to_hash: -> {
agent_id: String,
agent_version: Integer,
created_at_gt: Time,
created_at_gte: Time,
created_at_lt: Time,
created_at_lte: Time,
deployment_id: String,
include_archived: bool,
limit: Integer,
memory_store_id: String,
order: Anthropic::Models::Beta::SessionListParams::order,
page: String,
statuses: ::Array[Anthropic::Models::Beta::SessionListParams::status],
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|