reactbridge-sdk 0.2.10 → 0.2.12

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.js CHANGED
@@ -129,7 +129,10 @@ class ReactBridgeAPI {
129
129
  sendToolResult(sessionId, toolResult, originalRequest) {
130
130
  return __awaiter(this, void 0, void 0, function* () {
131
131
  // Second API call with tool result
132
- const request = Object.assign(Object.assign({}, originalRequest), { sessionId, query: `[Tool Result] ${toolResult.summary}` });
132
+ // Pass the FULL ToolResult object to the orchestrator, not just the summary
133
+ // The orchestrator needs: status, result_items, and detailed_data for sequential execution
134
+ const toolResultJson = JSON.stringify(toolResult, null, 2);
135
+ const request = Object.assign(Object.assign({}, originalRequest), { sessionId, query: `[Tool Result] ${toolResultJson}` });
133
136
  return this.sendMessage(request);
134
137
  });
135
138
  }