@ai-sdk/harness-deepagents 1.0.123 → 1.0.124

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ai-sdk/harness-deepagents
2
2
 
3
+ ## 1.0.124
4
+
5
+ ### Patch Changes
6
+
7
+ - 056dab8: fix(harness-deepagents): fix bug where tool errors were not properly forwarded
8
+ - Updated dependencies [40231b6]
9
+ - @ai-sdk/harness@1.0.124
10
+
3
11
  ## 1.0.123
4
12
 
5
13
  ### Patch Changes
@@ -2245,7 +2245,14 @@ function buildHostTools(toolSchemas) {
2245
2245
  input: JSON.stringify(input),
2246
2246
  providerExecuted: false
2247
2247
  });
2248
- const { output } = await turn.requestToolResult(toolCallId);
2248
+ const { output, isError } = await turn.requestToolResult(toolCallId);
2249
+ turn.emit({
2250
+ type: "tool-result",
2251
+ toolCallId,
2252
+ toolName: schema.name,
2253
+ result: output ?? null,
2254
+ ...isError !== void 0 ? { isError } : {}
2255
+ });
2249
2256
  return typeof output === "string" ? output : JSON.stringify(output);
2250
2257
  },
2251
2258
  {