Class: Anthropic::Models::Beta::DreamListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/dream_list_params.rb,
sig/anthropic/models/beta/dream_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Dreams#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(created_at_gt: nil, created_at_lt: nil, include_archived: nil, limit: nil, page: nil, statuses: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ DreamListParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::DreamListParams for more details.

Parameters:

  • created_at_gt (Time) (defaults to: nil) —

    Return only dreams created after this time (exclusive), in RFC 3339.

  • created_at_lt (Time) (defaults to: nil) —

    Return only dreams created before this time (exclusive), in RFC 3339.

  • include_archived (Boolean) (defaults to: nil) —

    Whether to include archived dreams. Defaults to false.

  • limit (Integer) (defaults to: nil) —

    The maximum number of dreams to return, from 1 to 100. Defaults to 20.

  • page (String) (defaults to: nil) —

    The cursor for the page to return, taken from next_page in a previous response

  • statuses (Array<Symbol, Anthropic::Models::Beta::BetaDreamStatus>) (defaults to: nil) —

    Return only dreams that have one of these statuses.

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send dreaming-2026-04-21 in this heade

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • created_at_gt: (Time) (defaults to: nil)
  • created_at_lt: (Time) (defaults to: nil)
  • include_archived: (Boolean) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • page: (String) (defaults to: nil)
  • statuses: (::Array[Anthropic::Models::Beta::beta_dream_status]) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/dream_list_params.rb', line 71


Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send dreaming-2026-04-21 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



58
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 58

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#created_at_gt ⇒ Time?

Return only dreams created after this time (exclusive), in RFC 3339.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


15
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 15

optional :created_at_gt, Time

#created_at_lt ⇒ Time?

Return only dreams created before this time (exclusive), in RFC 3339.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


21
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 21

optional :created_at_lt, Time

#include_archived ⇒ Boolean?

Whether to include archived dreams. Defaults to false.

Parameters:

Returns:



27
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 27

optional :include_archived, Anthropic::Internal::Type::Boolean

#limit ⇒ Integer?

The maximum number of dreams to return, from 1 to 100. Defaults to 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


33
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 33

optional :limit, Integer

#page ⇒ String?

The cursor for the page to return, taken from next_page in a previous response.

Leave it out to get the first page.

Parameters:

  • (String)

Returns:

  • (String, nil)


42
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 42

optional :page, String

#statuses ⇒ Array<Symbol, Anthropic::Models::Beta::BetaDreamStatus>?

Return only dreams that have one of these statuses.

Repeat the parameter to give more than one status. Leave it out to return dreams of every status.

Parameters:

  • (::Array[Anthropic::Models::Beta::beta_dream_status])

Returns:



51
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 51

optional :statuses, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::BetaDreamStatus] }

#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.

Parameters:

  • (String)

Returns:

  • (String, nil)


69
# File 'lib/anthropic/models/beta/dream_list_params.rb', line 69

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { created_at_gt: Time, created_at_lt: Time, include_archived: bool, limit: Integer, page: String, statuses: ::Array[Anthropic::Models::Beta::beta_dream_status], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ created_at_gt: Time, created_at_lt: Time, include_archived: bool, limit: Integer, page: String, statuses: ::Array[Anthropic::Models::Beta::beta_dream_status], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


69
70
71
72
73
74
75
76
77
78
79
# File 'sig/anthropic/models/beta/dream_list_params.rbs', line 69

def to_hash: -> {
  created_at_gt: Time,
  created_at_lt: Time,
  include_archived: bool,
  limit: Integer,
  page: String,
  statuses: ::Array[Anthropic::Models::Beta::beta_dream_status],
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}