diff --git a/experimental/lambda/src/test/java/io/serverless/workflow/impl/FluentDSLCallTest.java b/experimental/lambda/src/test/java/io/serverless/workflow/impl/FluentDSLCallTest.java
index 9706be4f..dcad95d8 100644
--- a/experimental/lambda/src/test/java/io/serverless/workflow/impl/FluentDSLCallTest.java
+++ b/experimental/lambda/src/test/java/io/serverless/workflow/impl/FluentDSLCallTest.java
@@ -34,7 +34,7 @@ void testJavaFunction() throws InterruptedException, ExecutionException {
try (WorkflowApplication app = WorkflowApplication.builder().build()) {
final Workflow workflow =
FuncWorkflowBuilder.workflow("testJavaCall")
- .tasks(tasks -> tasks.callFn(f -> f.fn(JavaFunctions::getName)))
+ .tasks(tasks -> tasks.callFn(f -> f.function(JavaFunctions::getName)))
.build();
assertThat(
app.workflowDefinition(workflow)
@@ -85,7 +85,7 @@ void testSwitch() throws InterruptedException, ExecutionException {
switchOdd.items(
item ->
item.when(CallTest::isOdd).then(FlowDirectiveEnum.END)))
- .callFn(callJava -> callJava.fn(CallTest::zero)))
+ .callFn(callJava -> callJava.function(CallTest::zero)))
.build();
WorkflowDefinition definition = app.workflowDefinition(workflow);
diff --git a/fluent/agentic/pom.xml b/fluent/agentic/pom.xml
new file mode 100644
index 00000000..74869509
--- /dev/null
+++ b/fluent/agentic/pom.xml
@@ -0,0 +1,73 @@
+
+
+ 4.0.0
+
+ io.serverlessworkflow
+ serverlessworkflow-fluent
+ 8.0.0-SNAPSHOT
+
+
+ Serverless Workflow :: Fluent :: Agentic
+ serverlessworkflow-fluent-agentic
+
+
+ 17
+ 17
+ UTF-8
+
+ 1.2.0-beta8-SNAPSHOT
+
+
+
+
+ io.serverlessworkflow
+ serverlessworkflow-experimental-types
+
+
+ io.serverlessworkflow
+ serverlessworkflow-types
+
+
+ io.serverlessworkflow
+ serverlessworkflow-fluent-spec
+
+
+ io.serverlessworkflow
+ serverlessworkflow-fluent-func
+
+
+ dev.langchain4j
+ langchain4j-agentic
+ ${version.dev.langchain4j}
+
+
+ org.slf4j
+ slf4j-simple
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+ org.mockito
+ mockito-core
+ test
+
+
+ org.assertj
+ assertj-core
+
+
+ dev.langchain4j
+ langchain4j-ollama
+ test
+ 1.2.0-SNAPSHOT
+
+
+
+
\ No newline at end of file
diff --git a/fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic/AgentAdapters.java b/fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic/AgentAdapters.java
new file mode 100644
index 00000000..eafd2a82
--- /dev/null
+++ b/fluent/agentic/src/main/java/io/serverlessworkflow/fluent/agentic/AgentAdapters.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2020-Present The Serverless Workflow Specification Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.serverlessworkflow.fluent.agentic;
+
+import static dev.langchain4j.agentic.internal.AgentExecutor.agentsToExecutors;
+
+import dev.langchain4j.agentic.Cognisphere;
+import dev.langchain4j.agentic.internal.AgentExecutor;
+import dev.langchain4j.agentic.internal.AgentInstance;
+import io.serverlessworkflow.impl.expressions.LoopPredicateIndex;
+import java.util.List;
+import java.util.function.Function;
+import java.util.function.Predicate;
+import java.util.stream.Stream;
+
+public final class AgentAdapters {
+ private AgentAdapters() {}
+
+ public static List toExecutors(Object... agents) {
+ return agentsToExecutors(Stream.of(agents).map(AgentInstance.class::cast).toList());
+ }
+
+ public static Function toFunction(AgentExecutor exec) {
+ return exec::invoke;
+ }
+
+ public static LoopPredicateIndex