You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f5e477
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/anthropic/types/beta/beta_dream.py
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,11 @@
16
16
17
17
classBetaDream(BaseModel):
18
18
"""
19
-
An asynchronous memory-consolidation job that reads a memory store plus a set of session transcripts and writes consolidated memories into an output memory store — a new store by default, or an existing store chosen via output_behavior. The Dreams API is in research preview: the request and response shapes are volatile and may change without the deprecation period that applies to generally-available endpoints.
19
+
An asynchronous job that reads a memory store and past sessions, then writes a reorganized version of that memory store.
20
+
21
+
By default the dream writes its result to a new memory store and doesn't change the input memory store. With `output_behavior` set to `update_existing`, it writes its result into the input memory store instead. The Dreams API is in research preview, so this resource can still change.
22
+
23
+
See the [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#how-it-works) for what a dream reads and produces.
20
24
"""
21
25
22
26
id: str
@@ -41,9 +45,10 @@ class BetaDream(BaseModel):
41
45
"""The guidance given when the dream was created, or `null` if none was given."""
42
46
43
47
model: BetaDreamModelConfig
44
-
"""Model identifier and configuration applied to every pipeline stage.
48
+
"""The model that runs a dream, from the request that created it.
45
49
46
-
Same wire shape as the Agents API ModelConfig.
50
+
The dream uses this model for all of its work. The response always gives the
51
+
model as an object, even if the request gave only a model ID.
47
52
"""
48
53
49
54
output_behavior: BetaOutputBehavior
@@ -80,9 +85,27 @@ class BetaDream(BaseModel):
80
85
"""
81
86
82
87
status: BetaDreamStatus
83
-
"""Lifecycle status of a Dream."""
88
+
"""Where a dream is in its lifecycle.
89
+
90
+
`completed`, `failed`, and `canceled` are final: once a dream has one of these
Copy file name to clipboardExpand all lines: src/anthropic/types/beta/beta_dream_memory_store_input.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
7
7
8
8
classBetaDreamMemoryStoreInput(BaseModel):
9
-
"""An input memory store the dream reads from.
9
+
"""The memory store that a dream reads, given as an entry in `inputs`.
10
10
11
-
The dream never mutates this store unless it is also the destination: with output_behavior {type: "update_existing"} the job consolidates this store in place.
11
+
With `output_behavior` set to `update_existing`, the dream writes its result into this memory store. Otherwise the dream doesn't change it.
"""The memory store that a dream reads, given as an entry in `inputs`.
10
10
11
-
The dream never mutates this store unless it is also the destination: with output_behavior {type: "update_existing"} the job consolidates this store in place.
11
+
With `output_behavior` set to `update_existing`, the dream writes its result into this memory store. Otherwise the dream doesn't change it.
0 commit comments