@mastra/libsql 1.24.1-alpha.0 → 1.24.1-alpha.1
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/docs/SKILL.md
CHANGED
|
@@ -407,6 +407,10 @@ const handleResume = async () => {
|
|
|
407
407
|
}
|
|
408
408
|
```
|
|
409
409
|
|
|
410
|
+
When a suspended or approval-gated tool call resumes, the stream emits a `tool-call-resumed` chunk with the same `toolCallId` before the call's `tool-result`. Its `payload.kind` is `'suspension'` or `'approval'`, and the payload repeats the original `args`, `suspendPayload`, and `resumeSchema`. The chunk is only emitted when a real suspension or approval request is cleared.
|
|
411
|
+
|
|
412
|
+
With `@mastra/ai-sdk`, it arrives as a `data-tool-call-suspended` part (or `data-tool-call-approval` part for approvals) with `resumed: true`, which replaces the original part and keeps its payload. Use this signal to mark a question as answered. Don't infer it from the shape of the tool output: when the suspension came from a sub-agent, the output of the delegation call is the sub-agent's result, not your answer.
|
|
413
|
+
|
|
410
414
|
## Automatic tool resumption
|
|
411
415
|
|
|
412
416
|
When using tools that call `suspend()`, you can enable automatic resumption so the agent resumes suspended tools based on the user's next message. Set `autoResumeSuspendedTools` to `true` in the agent's default options or per-request:
|
package/dist/index.cjs
CHANGED
|
@@ -13506,9 +13506,10 @@ var WorkflowsLibSQL = class WorkflowsLibSQL extends _mastra_core_storage.Workflo
|
|
|
13506
13506
|
...state
|
|
13507
13507
|
};
|
|
13508
13508
|
await tx.execute({
|
|
13509
|
-
sql: `UPDATE ${_mastra_core_storage.TABLE_WORKFLOW_SNAPSHOT} SET snapshot = jsonb(?) WHERE workflow_name = ? AND run_id = ?`,
|
|
13509
|
+
sql: `UPDATE ${_mastra_core_storage.TABLE_WORKFLOW_SNAPSHOT} SET snapshot = jsonb(?), updatedAt = ? WHERE workflow_name = ? AND run_id = ?`,
|
|
13510
13510
|
args: [
|
|
13511
13511
|
safeStringify(updatedSnapshot),
|
|
13512
|
+
(/* @__PURE__ */ new Date()).toISOString(),
|
|
13512
13513
|
workflowName,
|
|
13513
13514
|
runId
|
|
13514
13515
|
]
|