File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
experimental/fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1818import static dev .langchain4j .agentic .internal .AgentUtil .agentsToExecutors ;
1919
2020import dev .langchain4j .agentic .internal .AgentExecutor ;
21- import dev .langchain4j .agentic .internal .AgentSpecification ;
2221import dev .langchain4j .agentic .scope .AgenticScope ;
2322import dev .langchain4j .agentic .scope .DefaultAgenticScope ;
2423import io .serverlessworkflow .api .types .func .LoopPredicateIndex ;
2524import java .util .List ;
2625import java .util .function .Function ;
2726import java .util .function .Predicate ;
28- import java .util .stream .Stream ;
2927
3028public final class AgentAdapters {
3129
3230 private AgentAdapters () {}
3331
3432 public static List <AgentExecutor > toExecutors (Object ... agents ) {
35- return agentsToExecutors (Stream . of ( agents ). map ( AgentSpecification . class :: cast ). toArray () );
33+ return agentsToExecutors (agents );
3634 }
3735
3836 public static Function <DefaultAgenticScope , Object > toFunction (AgentExecutor exec ) {
You can’t perform that action at this time.
0 commit comments