🔗 fix: Set Abort Signal for Agent Chain Run if Cleaned Up (#8625)

This commit is contained in:
Danny Avila 2025-07-23 10:26:27 -04:00 committed by GitHub
parent 8a3ff62ee6
commit a01536ddb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -735,6 +735,9 @@ class AgentClient extends BaseClient {
if (i > 0) {
this.model = agent.model_parameters.model;
}
if (i > 0 && config.signal == null) {
config.signal = abortController.signal;
}
if (agent.recursion_limit && typeof agent.recursion_limit === 'number') {
config.recursionLimit = agent.recursion_limit;
}