Update version to 1.5.4 and enhance BaseAgent's chooseNext method
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
/target/
|
||||
/.classpath
|
||||
/.project
|
||||
/.settings/
|
||||
/.settings/
|
||||
.vscode/settings.json
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
||||
<artifactId>lm-lib</artifactId>
|
||||
<groupId>de.extio</groupId>
|
||||
<name>lm-lib</name>
|
||||
<version>1.5.3</version>
|
||||
<version>1.5.4</version>
|
||||
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
|
||||
@@ -66,7 +66,11 @@ public interface BaseAgent {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user