@rowan-agent/agent 0.12.0 → 0.12.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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1367,7 +1367,7 @@ function createPhaseInteractionDriver(state, phase, signal) {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
const matchingStoredRequest = (input) => {
|
|
1369
1369
|
const fingerprint = interactionFingerprint(input);
|
|
1370
|
-
return [...requests.values()].find((request) => !usedRequestIds.has(request.id) && interactionFingerprint(request) === fingerprint);
|
|
1370
|
+
return [...requests.values()].find((request) => !usedRequestIds.has(request.id) && (answers.has(request.id) || request.status === "pending") && request.toolCallId === input.toolCallId && interactionFingerprint(request) === fingerprint);
|
|
1371
1371
|
};
|
|
1372
1372
|
return {
|
|
1373
1373
|
signal: signal ?? new AbortController().signal,
|