Class: Anthropic::Models::Beta::DreamCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::DreamCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/dream_create_params.rb,
sig/anthropic/models/beta/dream_create_params.rbs
Overview
Defined Under Namespace
Modules: Model
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
dreaming-2026-04-21in this header. -
#inputs ⇒ Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>
The memory store and sessions for the dream to read, as exactly one
memory_storeentry and exactly onesessionsentry. -
#instructions ⇒ String?
Guidance that steers how the dream reads the sessions and organizes the output memory store, from 1 to 4,096 characters.
-
#model ⇒ Anthropic::Models::Beta::BetaDreamModelConfigParam, String
The model that runs a dream, given as a model ID or as an object with
idandspeed. -
#output_behavior ⇒ Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, ...
Which memory store a dream writes its result to.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(inputs:, model:, instructions: nil, output_behavior: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ DreamCreateParams
constructor
Some parameter documentations has been truncated, see DreamCreateParams for more details.
- #to_hash ⇒ { inputs: ::Array[Anthropic::Models::Beta::beta_dream_input], model: Anthropic::Models::Beta::DreamCreateParams::model, instructions: String?, output_behavior: Anthropic::Models::Beta::beta_output_behavior, 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(inputs:, model:, instructions: nil, output_behavior: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ DreamCreateParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::DreamCreateParams for more details.
|
|
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 67
|
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.
54 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 54 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#inputs ⇒ Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>
The memory store and sessions for the dream to read, as exactly one
memory_store entry and exactly one sessions entry.
16 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 16 required :inputs, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaDreamInput] } |
#instructions ⇒ String?
Guidance that steers how the dream reads the sessions and organizes the output memory store, from 1 to 4,096 characters.
See the Dreams guide for what kinds of instructions work well.
40 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 40 optional :instructions, String, nil?: true |
#model ⇒ Anthropic::Models::Beta::BetaDreamModelConfigParam, String
The model that runs a dream, given as a model ID or as an object with id and
speed.
In the object form, speed can only be standard.
The Availability section of the Dreams guide lists the supported models.
29 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 29 required :model, union: -> { Anthropic::Beta::DreamCreateParams::Model } |
#output_behavior ⇒ Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, ...
Which memory store a dream writes its result to. Defaults to create_new when
left out of a create request.
47 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 47 optional :output_behavior, union: -> { Anthropic::Beta::BetaOutputBehavior } |
#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.
65 |
# File 'lib/anthropic/models/beta/dream_create_params.rb', line 65 optional :workspace_id, String |
Instance Method Details
#to_hash ⇒ { inputs: ::Array[Anthropic::Models::Beta::beta_dream_input], model: Anthropic::Models::Beta::DreamCreateParams::model, instructions: String?, output_behavior: Anthropic::Models::Beta::beta_output_behavior, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
51 52 53 54 55 56 57 58 59 |
# File 'sig/anthropic/models/beta/dream_create_params.rbs', line 51
def to_hash: -> {
inputs: ::Array[Anthropic::Models::Beta::beta_dream_input],
model: Anthropic::Models::Beta::DreamCreateParams::model,
instructions: String?,
output_behavior: Anthropic::Models::Beta::beta_output_behavior,
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|