Update version to 1.5.4 and enhance BaseAgent's chooseNext method
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
/.classpath
|
/.classpath
|
||||||
/.project
|
/.project
|
||||||
/.settings/
|
/.settings/
|
||||||
|
.vscode/settings.json
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -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>
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user