AgentNext.END constant and bump version to 1.5.6

This commit is contained in:
extio-de
2025-06-25 20:20:50 +02:00
parent d76e2e8f4f
commit c3fd40f4a7
4 changed files with 5 additions and 3 deletions

View File

@@ -2,4 +2,6 @@ package de.extio.lmlib.agent;
public final record AgentNext(String name, Boolean gradingPassed) {
public static final AgentNext END = new AgentNext(null, null);
}

View File

@@ -70,7 +70,7 @@ public interface BaseAgent {
}
default AgentNext chooseNext(final AgentContext context) {
return new AgentNext(null, null);
return AgentNext.END;
}
default List<AgentContext> execute(final Client client, final ExecutorService agentExecutorService, final AgentContext context) {