@standardagents/spec 0.45.7 → 0.45.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6106,9 +6106,10 @@ interface HookSignatures<State = ThreadState, Msg = HookMessage, ToolCall = Hook
|
|
|
6106
6106
|
* Receives the full message object before insertion. Return modified
|
|
6107
6107
|
* message to transform before storage.
|
|
6108
6108
|
*
|
|
6109
|
-
* A hook that throws
|
|
6110
|
-
* no message is persisted.
|
|
6111
|
-
*
|
|
6109
|
+
* A hook that throws prevents the insertion: `injectMessage()` rejects
|
|
6110
|
+
* and no message is persisted. A runtime can still perform an insertion
|
|
6111
|
+
* that an execution cannot go on without, such as the message of a model
|
|
6112
|
+
* step or a tool result message, with the last good message.
|
|
6112
6113
|
*
|
|
6113
6114
|
* @param state - Thread state
|
|
6114
6115
|
* @param message - Message to be created
|
|
@@ -6157,6 +6158,11 @@ interface HookSignatures<State = ThreadState, Msg = HookMessage, ToolCall = Hook
|
|
|
6157
6158
|
* Receives the message ID and update data. Return modified updates
|
|
6158
6159
|
* to transform the changes before storage.
|
|
6159
6160
|
*
|
|
6161
|
+
* A hook that throws prevents the update: `updateMessage()` rejects and
|
|
6162
|
+
* the message keeps its stored value. A runtime can still apply an
|
|
6163
|
+
* update that an execution cannot go on without, such as the status of
|
|
6164
|
+
* a model step, with the last good updates.
|
|
6165
|
+
*
|
|
6160
6166
|
* @param state - Thread state
|
|
6161
6167
|
* @param messageId - ID of message being updated
|
|
6162
6168
|
* @param updates - Update data
|