Dream object, input/output, and status schemas.
Dream object
All Dream endpoints return the Dream object.
| Field | Type | Description |
|---|---|---|
id | string | Dream ID, prefixed with drm_ |
type | string | Always "dream" |
status | string | Dream status, see Dream status |
inputs | array | Input list, see Dream input |
outputs | array | Output list, see Dream output |
model | object | Saved model configuration; see Dream model |
instructions | string | Custom consolidation instructions, at most 4096 UTF-8 bytes |
session_id | string or null | Associated Dreaming Session ID (populated after execution starts) |
usage | object | Token usage statistics |
error | object or null | Error details on failure |
created_at | string | UTC creation time (ISO 8601) |
ended_at | string or null | UTC end time (only for terminal states) |
archived_at | string or null | UTC archive time |
Dream model
Requests accept a string ID for compatibility; model is always an object in Dream responses:
| Field | Type | Description |
|---|---|---|
id | string | Saved model ID; auto denotes default routing |
effort | string | Optional; returned only when explicitly set. Canonical values are none, low, medium, high, xhigh, and max; explicit none is preserved rather than omitted |
context_window | integer | Optional; returned only when explicitly set, in tokens |
{"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
| Value | Description |
|---|---|
pending | Created, awaiting execution |
running | Memory consolidation in progress |
completed | Consolidation finished; results in outputs |
failed | Execution failed; reason in error |
canceled | Canceled by user |
Dream input
Each element in the inputs array:
| type value | Required fields | Description |
|---|---|---|
memory_store | memory_store_id | Specifies the input Memory Store (required, only one allowed) |
sessions | session_ids | Specifies Sessions to prioritize (optional, max 100 IDs) |
Dream output
After completion, elements in the outputs array:
| Field | Type | Description |
|---|---|---|
type | string | Always "memory_store" |
memory_store_id | string | The consolidated output Memory Store ID |
files_touched | array | Paths of memory files created/modified/deleted |
Dream usage
| Field | Type | Description |
|---|---|---|
input_tokens | integer | Input token count |
output_tokens | integer | Output token count |
cache_creation_input_tokens | integer | Cache creation token count |
cache_read_input_tokens | integer | Cache read token count |
Dream error
Error object returned on failure:
| Field | Type | Description |
|---|---|---|
type | string | Error type (e.g. "no_output", "internal_error") |
message | string | Error description |