File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
main/java/io/serverlessworkflow/fluent/agentic
test/java/io/serverlessworkflow/fluent/agentic Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .serverlessworkflow .fluent .agentic ;
17
17
18
- import static dev .langchain4j .agentic .internal .AgentExecutor .agentsToExecutors ;
18
+ import static dev .langchain4j .agentic .internal .AgentUtil .agentsToExecutors ;
19
19
20
- import dev .langchain4j .agentic .Cognisphere ;
20
+ import dev .langchain4j .agentic .cognisphere . Cognisphere ;
21
21
import dev .langchain4j .agentic .internal .AgentExecutor ;
22
22
import dev .langchain4j .agentic .internal .AgentInstance ;
23
23
import io .serverlessworkflow .impl .expressions .LoopPredicateIndex ;
27
27
import java .util .stream .Stream ;
28
28
29
29
public final class AgentAdapters {
30
+
30
31
private AgentAdapters () {}
31
32
32
33
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 ());
34
35
}
35
36
36
37
public static Function <Cognisphere , Object > toFunction (AgentExecutor exec ) {
Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .serverlessworkflow .fluent .agentic ;
17
17
18
- import dev .langchain4j .agentic .Cognisphere ;
18
+ import dev .langchain4j .agentic .cognisphere . Cognisphere ;
19
19
import dev .langchain4j .agentic .internal .AgentExecutor ;
20
20
import io .serverlessworkflow .api .types .ForTaskConfiguration ;
21
21
import io .serverlessworkflow .api .types .func .ForTaskFunction ;
Original file line number Diff line number Diff line change 24
24
import static org .mockito .Mockito .spy ;
25
25
26
26
import dev .langchain4j .agentic .AgentServices ;
27
- import dev .langchain4j .agentic .Cognisphere ;
27
+ import dev .langchain4j .agentic .cognisphere . Cognisphere ;
28
28
import io .serverlessworkflow .api .types .ForkTask ;
29
29
import io .serverlessworkflow .api .types .Task ;
30
30
import io .serverlessworkflow .api .types .TaskItem ;
You can’t perform that action at this time.
0 commit comments