effect-agent 0.1.0-beta.108 → 0.1.0-beta.109

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.
@@ -1519,7 +1519,7 @@ const executePreparedToolCall = (context, turnId, toolkit, prepared, trace, resu
1519
1519
  isFailure: result.isFailure
1520
1520
  };
1521
1521
  terminalResultCommitted = true;
1522
- if (observer !== void 0 && event._tag === "ToolCallFailed") failureObservation = {
1522
+ if (observer !== void 0 && event._tag === "ToolCallFailed" && rejection === void 0) failureObservation = {
1523
1523
  _tag: "ModelToolFailure",
1524
1524
  kind: "declared-failure",
1525
1525
  agentId: context.agentId,
@@ -4721,4 +4721,4 @@ var AgentRuntime_exports = /* @__PURE__ */ __exportAll({
4721
4721
  //#endregion
4722
4722
  export { stream as _, SubagentDurability as a, withTerminalDefectEvent as b, decodeFinalOutput as c, projectCompletionOutput as d, renderInputPrompt as f, startUnknown as g, start as h, AgentSpawner as i, encodeRunDisposition as l, runUnknown as m, AgentChildPending as n, SubagentDurabilityError as o, run as p, AgentResultSchema as r, ToolCallWaiting as s, AgentRuntime_exports as t, projectCompletionFromToolOutput as u, streamUnknown as v, streamWithUsageAccountingUnknown as y };
4723
4723
 
4724
- //# sourceMappingURL=AgentRuntime-I1UoaI9W.mjs.map
4724
+ //# sourceMappingURL=AgentRuntime-C291vZTk.mjs.map