Skip to content

Commit 1241aa2

Browse files
authored
fix imports and agentsToExecutors call (#678)
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
1 parent b11505b commit 1241aa2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic/AgentAdapters.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
package io.serverlessworkflow.fluent.agentic;
1717

18-
import static dev.langchain4j.agentic.internal.AgentExecutor.agentsToExecutors;
18+
import static dev.langchain4j.agentic.internal.AgentUtil.agentsToExecutors;
1919

20-
import dev.langchain4j.agentic.Cognisphere;
20+
import dev.langchain4j.agentic.cognisphere.Cognisphere;
2121
import dev.langchain4j.agentic.internal.AgentExecutor;
2222
import dev.langchain4j.agentic.internal.AgentInstance;
2323
import io.serverlessworkflow.impl.expressions.LoopPredicateIndex;
@@ -27,10 +27,11 @@
2727
import java.util.stream.Stream;
2828

2929
public final class AgentAdapters {
30+
3031
private AgentAdapters() {}
3132

3233
public static List<AgentExecutor> toExecutors(Object... agents) {
33-
return agentsToExecutors(Stream.of(agents).map(AgentInstance.class::cast).toList());
34+
return agentsToExecutors(Stream.of(agents).map(AgentInstance.class::cast).toArray());
3435
}
3536

3637
public static Function<Cognisphere, Object> toFunction(AgentExecutor exec) {

fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic/LoopAgentsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package io.serverlessworkflow.fluent.agentic;
1717

18-
import dev.langchain4j.agentic.Cognisphere;
18+
import dev.langchain4j.agentic.cognisphere.Cognisphere;
1919
import dev.langchain4j.agentic.internal.AgentExecutor;
2020
import io.serverlessworkflow.api.types.ForTaskConfiguration;
2121
import io.serverlessworkflow.api.types.func.ForTaskFunction;

fluent/agentic/src/test/java/io/serverlessworkflow/fluent/agentic/AgentWorkflowBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static org.mockito.Mockito.spy;
2525

2626
import dev.langchain4j.agentic.AgentServices;
27-
import dev.langchain4j.agentic.Cognisphere;
27+
import dev.langchain4j.agentic.cognisphere.Cognisphere;
2828
import io.serverlessworkflow.api.types.ForkTask;
2929
import io.serverlessworkflow.api.types.Task;
3030
import io.serverlessworkflow.api.types.TaskItem;

0 commit comments

Comments
 (0)