fix: Set skipCache flag on response handling errors in BaseAgent
This commit is contained in:
@@ -154,6 +154,7 @@ public interface BaseAgent {
|
||||
if (!responseHandler.handle(completion, split.context())) {
|
||||
split.context().getGraph().add("⚠");
|
||||
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response());
|
||||
split.context().setSkipCache(true);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -163,6 +164,7 @@ public interface BaseAgent {
|
||||
catch (final Exception e) {
|
||||
split.context().getGraph().add("⚠");
|
||||
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response(), e);
|
||||
split.context().setSkipCache(true);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user