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

@@ -4,7 +4,7 @@
<artifactId>lm-lib</artifactId>
<groupId>de.extio</groupId>
<name>lm-lib</name>
<version>1.5.5</version>
<version>1.5.6</version>
<properties>
<java.version>21</java.version>

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) {

View File

@@ -100,7 +100,7 @@ public class AgentTest {
},
null,
null,
context -> new AgentNext(null, null)));
context -> AgentNext.END));
final var context = new AgentContext(agents);
context.getContext().put("code", List.of(Files.readString(Path.of("src/main/java/de/extio/lmlib/agent/Agent.java"))));