### Beta Dreaming Error ### Beta Target Store Held Error
The whole hunk
from line 14, old and new numbered
/
lines
from line 14
1414
1515 - `string`
1616
17 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
17 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
1818
1919 - `"message-batches-2024-09-24"`
2020
from line 98
9898
9999 - `"ce-user-management-2026-07-13"`
100100
101 - `"mid-conversation-output-config-2026-07-01"`
102
103 - `"thinking-binding-controls-2026-08-01"`
104
105 - `"mid-conversation-system-clear-at-2026-08-21"`
106
101107### Body parameters
102108
103109- `inputs: array of BetaDreamInput`
from line 439
433439
434440 - `string`
435441
436 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
442 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
437443
438444 - `"message-batches-2024-09-24"`
439445
from line 523
517523
518524 - `"ce-user-management-2026-07-13"`
519525
526 - `"mid-conversation-output-config-2026-07-01"`
527
528 - `"thinking-binding-controls-2026-08-01"`
529
530 - `"mid-conversation-system-clear-at-2026-08-21"`
531
520532### Returns
521533
522534- `data: array of BetaDream`
from line 751
739751
740752 - `string`
741753
742 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
754 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
743755
744756 - `"message-batches-2024-09-24"`
745757
from line 835
823835
824836 - `"ce-user-management-2026-07-13"`
825837
838 - `"mid-conversation-output-config-2026-07-01"`
839
840 - `"thinking-binding-controls-2026-08-01"`
841
842 - `"mid-conversation-system-clear-at-2026-08-21"`
843
826844### Returns
827845
828846- `BetaDream object`
from line 1058
10401058
10411059 - `string`
10421060
1043 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
1061 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
10441062
10451063 - `"message-batches-2024-09-24"`
10461064
from line 1142
11241142
11251143 - `"ce-user-management-2026-07-13"`
11261144
1145 - `"mid-conversation-output-config-2026-07-01"`
1146
1147 - `"thinking-binding-controls-2026-08-01"`
1148
1149 - `"mid-conversation-system-clear-at-2026-08-21"`
1150
11271151### Returns
11281152
11291153- `BetaDream object`
from line 1366
13421366
13431367 - `string`
13441368
1345 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
1369 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
13461370
13471371 - `"message-batches-2024-09-24"`
13481372
from line 1450
14261450
14271451 - `"ce-user-management-2026-07-13"`
14281452
1453 - `"mid-conversation-output-config-2026-07-01"`
1454
1455 - `"thinking-binding-controls-2026-08-01"`
1456
1457 - `"mid-conversation-system-clear-at-2026-08-21"`
1458
14291459### Returns
14301460
14311461- `BetaDream object`
from line 1966
19361966
19371967 format: int32
19381968
1969### Beta Dreaming Error
1970
1971- `BetaDreamingError = BetaInvalidRequestError or BetaAuthenticationError or BetaBillingError or 7 more`
1972
1973 The `output_behavior.memory_store_id` target is still held by a prior `{type: "update_existing"}` dream — one that is `pending` or `running`, or was canceled with its final writes still landing. Rarely the named dream has just finished (`completed`/`failed`) and its execution is still closing; an immediate retry then almost always succeeds. The message names the holding dream when the server can identify it (rarely omitted); poll it to a terminal state or cancel it, then retry. Carried with `x-should-retry: false`.
1974
1975 - `BetaInvalidRequestError object`
1976
1977 - `message: string`
1978
1979 default: Invalid request
1980
1981 - `type: "invalid_request_error"`
1982
1983 default: invalid_request_error
1984
1985 - `BetaAuthenticationError object`
1986
1987 - `message: string`
1988
1989 default: Authentication error
1990
1991 - `type: "authentication_error"`
1992
1993 default: authentication_error
1994
1995 - `BetaBillingError object`
1996
1997 - `message: string`
1998
1999 default: Billing error
2000
2001 - `type: "billing_error"`
2002
2003 default: billing_error
2004
2005 - `BetaPermissionError object`
2006
2007 - `message: string`
2008
2009 default: Permission denied
2010
2011 - `type: "permission_error"`
2012
2013 default: permission_error
2014
2015 - `BetaNotFoundError object`
2016
2017 - `message: string`
2018
2019 default: Not found
2020
2021 - `type: "not_found_error"`
2022
2023 default: not_found_error
2024
2025 - `BetaRateLimitError object`
2026
2027 - `message: string`
2028
2029 default: Rate limited
2030
2031 - `type: "rate_limit_error"`
2032
2033 default: rate_limit_error
2034
2035 - `BetaGatewayTimeoutError object`
2036
2037 - `message: string`
2038
2039 default: Request timeout
2040
2041 - `type: "timeout_error"`
2042
2043 default: timeout_error
2044
2045 - `BetaAPIError object`
2046
2047 - `message: string`
2048
2049 default: Internal server error
2050
2051 - `type: "api_error"`
2052
2053 default: api_error
2054
2055 - `BetaOverloadedError object`
2056
2057 - `message: string`
2058
2059 default: Overloaded
2060
2061 - `type: "overloaded_error"`
2062
2063 default: overloaded_error
2064
2065 - `BetaTargetStoreHeldError object`
2066
2067 The `output_behavior.memory_store_id` target is still held by a prior `{type: "update_existing"}` dream — one that is `pending` or `running`, or was canceled with its final writes still landing. Rarely the named dream has just finished (`completed`/`failed`) and its execution is still closing; an immediate retry then almost always succeeds. The message names the holding dream when the server can identify it (rarely omitted); poll it to a terminal state or cancel it, then retry. Carried with `x-should-retry: false`.
2068
2069 - `type: "conflict_error"`
2070
2071 - `message: optional string`
2072
2073 Human-readable description of the conflict, naming the dream that holds the target store when the server can identify it.
2074
19392075### Beta Output Behavior
19402076
19412077- `BetaOutputBehavior = BetaOutputBehaviorCreateNew or BetaOutputBehaviorUpdateExisting`
from line 2113
19772113 minLength: 1
19782114
19792115 - `type: "update_existing"`
2116
2117### Beta Target Store Held Error
2118
2119- `BetaTargetStoreHeldError object`
2120
2121 The `output_behavior.memory_store_id` target is still held by a prior `{type: "update_existing"}` dream — one that is `pending` or `running`, or was canceled with its final writes still landing. Rarely the named dream has just finished (`completed`/`failed`) and its execution is still closing; an immediate retry then almost always succeeds. The message names the holding dream when the server can identify it (rarely omitted); poll it to a terminal state or cancel it, then retry. Carried with `x-should-retry: false`.
2122
2123 - `type: "conflict_error"`
2124
2125 - `message: optional string`
2126
2127 Human-readable description of the conflict, naming the dream that holds the target store when the server can identify it.
19802128