Agent: skipNextCompletion; Better cache keys; XL category; Fix ModelProfileService concurrency;

This commit is contained in:
extio-de
2025-06-22 13:28:22 +02:00
parent 04cde2558a
commit dc455165c8
7 changed files with 34 additions and 22 deletions

View File

@@ -30,6 +30,8 @@ public final class AgentContext {
private volatile boolean error;
private volatile boolean skipNextCompletion;
public AgentContext(final Map<String, Agent> agents) {
this.agents = agents;
this.context = new ConcurrentHashMap<>();
@@ -48,6 +50,7 @@ public final class AgentContext {
this.requestStatistic = other.requestStatistic;
this.lastCompletion = other.lastCompletion;
this.error = other.error;
this.skipNextCompletion = other.skipNextCompletion;
synchronized (other.graph) {
this.graph.addAll(other.graph);
}
@@ -125,4 +128,12 @@ public final class AgentContext {
this.error = error;
}
public boolean isSkipNextCompletion() {
return this.skipNextCompletion;
}
public void setSkipNextCompletion(final boolean skipNextCompletion) {
this.skipNextCompletion = skipNextCompletion;
}
}