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.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/api.d.ts.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
}
|