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())) {
|
if (!responseHandler.handle(completion, split.context())) {
|
||||||
split.context().getGraph().add("⚠");
|
split.context().getGraph().add("⚠");
|
||||||
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response());
|
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response());
|
||||||
|
split.context().setSkipCache(true);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,6 +164,7 @@ public interface BaseAgent {
|
|||||||
catch (final Exception e) {
|
catch (final Exception e) {
|
||||||
split.context().getGraph().add("⚠");
|
split.context().getGraph().add("⚠");
|
||||||
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response(), e);
|
LOGGER.warn("{} Cannot parse response: {}", this.name(), completion.response(), e);
|
||||||
|
split.context().setSkipCache(true);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user