Update version to 1.5.4 and enhance BaseAgent's chooseNext method

This commit is contained in:
extio-de
2025-06-23 13:31:49 +02:00
parent 52963e4eed
commit cf6b868d3c
3 changed files with 8 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/target/ /target/
/.classpath /.classpath
/.project /.project
/.settings/ /.settings/
.vscode/settings.json

View File

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

View File

@@ -66,7 +66,11 @@ public interface BaseAgent {
} }
default Function<AgentContext, AgentNext> chooseNext() { default Function<AgentContext, AgentNext> chooseNext() {
return context -> new AgentNext(null, null); return this::chooseNext;
}
default AgentNext chooseNext(final AgentContext context) {
return new AgentNext(null, null);
} }
default List<AgentContext> execute(final Client client, final ExecutorService agentExecutorService, final AgentContext context) { default List<AgentContext> execute(final Client client, final ExecutorService agentExecutorService, final AgentContext context) {