Class DreamCreateParams.Body
-
- All Implemented Interfaces:
public final class DreamCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDreamCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<BetaDreamInput>inputs()The memory store and sessions for the dream to read, as exactly one memory_storeentry and exactly onesessionsentry.final DreamCreateParams.Modelmodel()The model that runs a dream, given as a model ID or as an object with idandspeed.final Optional<String>instructions()Guidance that steers how the dream reads the sessions and organizes the output memory store, from 1 to 4,096 characters. final Optional<BetaOutputBehavior>outputBehavior()Which memory store a dream writes its result to. final JsonField<List<BetaDreamInput>>_inputs()Returns the raw JSON value of inputs. final JsonField<DreamCreateParams.Model>_model()Returns the raw JSON value of model. final JsonField<String>_instructions()Returns the raw JSON value of instructions. final JsonField<BetaOutputBehavior>_outputBehavior()Returns the raw JSON value of outputBehavior. final Map<String, JsonValue>_additionalProperties()final DreamCreateParams.Body.BuildertoBuilder()final DreamCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static DreamCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
inputs
final List<BetaDreamInput> inputs()
The memory store and sessions for the dream to read, as exactly one
memory_storeentry and exactly onesessionsentry.
-
model
final DreamCreateParams.Model model()
The model that runs a dream, given as a model ID or as an object with
idandspeed.In the object form,
speedcan only bestandard.The Availability section of the Dreams guide lists the supported models.
-
instructions
final Optional<String> instructions()
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.
-
outputBehavior
final Optional<BetaOutputBehavior> outputBehavior()
Which memory store a dream writes its result to. Defaults to
create_newwhen left out of a create request.
-
_inputs
final JsonField<List<BetaDreamInput>> _inputs()
Returns the raw JSON value of inputs.
Unlike inputs, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<DreamCreateParams.Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_instructions
final JsonField<String> _instructions()
Returns the raw JSON value of instructions.
Unlike instructions, this method doesn't throw if the JSON field has an unexpected type.
-
_outputBehavior
final JsonField<BetaOutputBehavior> _outputBehavior()
Returns the raw JSON value of outputBehavior.
Unlike outputBehavior, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final DreamCreateParams.Body.Builder toBuilder()
-
validate
final DreamCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static DreamCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.inputs() .model()
-
-
-
-