Skip to main content

Dream Schemas

Dream object, input/output, and status schemas.

Dream object

All Dream endpoints return the Dream object.
FieldTypeDescription
idstringDream ID, prefixed with drm_
typestringAlways "dream"
statusstringDream status, see Dream status
inputsarrayInput list, see Dream input
outputsarrayOutput list, see Dream output
modelobjectSaved model configuration; see Dream model
instructionsstringCustom consolidation instructions, at most 4096 UTF-8 bytes
session_idstring or nullAssociated Dreaming Session ID (populated after execution starts)
usageobjectToken usage statistics
errorobject or nullError details on failure
created_atstringUTC creation time (ISO 8601)
ended_atstring or nullUTC end time (only for terminal states)
archived_atstring or nullUTC archive time

Dream model

Requests accept a string ID for compatibility; model is always an object in Dream responses:
FieldTypeDescription
idstringSaved model ID; auto denotes default routing
effortstringOptional; returned only when explicitly set. Canonical values are none, low, medium, high, xhigh, and max; explicit none is preserved rather than omitted
context_windowintegerOptional; returned only when explicitly set, in tokens
{"id":"dfmodel","effort":"none","context_window":400000}
Historical Dreams without options and new Dreams created with only a model ID return an object such as {"id":"auto"}, without fabricated options. Create, get, list, cancel, and archive return the same saved configuration. It represents the saved selection, not the final routed model, actual context usage, or token usage. Reading historical Dreams does not revalidate them against the current model catalog. See Create Dream for request validation, available options, and auto behavior.

Dream status

ValueDescription
pendingCreated, awaiting execution
runningMemory consolidation in progress
completedConsolidation finished; results in outputs
failedExecution failed; reason in error
canceledCanceled by user

Dream input

Each element in the inputs array:
type valueRequired fieldsDescription
memory_storememory_store_idSpecifies the input Memory Store (required, only one allowed)
sessionssession_idsSpecifies Sessions to prioritize (optional, max 100 IDs)

Dream output

After completion, elements in the outputs array:
FieldTypeDescription
typestringAlways "memory_store"
memory_store_idstringThe consolidated output Memory Store ID
files_touchedarrayPaths of memory files created/modified/deleted

Dream usage

FieldTypeDescription
input_tokensintegerInput token count
output_tokensintegerOutput token count
cache_creation_input_tokensintegerCache creation token count
cache_read_input_tokensintegerCache read token count

Dream error

Error object returned on failure:
FieldTypeDescription
typestringError type (e.g. "no_output", "internal_error")
messagestringError description