fix: Set skipCache flag on response handling errors in BaseAgent

This commit is contained in:
extio-de
2026-03-14 14:31:53 +01:00
parent 1e5adefd13
commit b47380ec89

View File

@@ -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;
}
}