-
Notifications
You must be signed in to change notification settings - Fork 50
Introduce LangChain4j Agentic Workflow Implementation #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Introduce LangChain4j Agentic Workflow Implementation #681
Conversation
a29b25b
to
474526b
Compare
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
474526b
to
88cf6e8
Compare
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@@ -45,57 +35,59 @@ public WorkflowModel fromAny(WorkflowModel prev, Object obj) { | |||
|
|||
@Override | |||
public WorkflowModel combine(Map<String, WorkflowModel> workflowVariables) { | |||
return new AgenticModel(workflowVariables, cognisphere); | |||
throw new UnsupportedOperationException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means no parallel execution. Are we sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thin this file should be moved to experimental agentic, its not part of the fluent, but of the runtime
@@ -57,7 +57,8 @@ public AgentTaskItemListBuilder agent(String name, Object agent) { | |||
.forEach( | |||
exec -> | |||
this.delegate.callFn( | |||
name, fn -> fn.function(AgentAdapters.toFunction(exec), Cognisphere.class))); | |||
name, | |||
fn -> fn.function(AgentAdapters.toFunction(exec), DefaultCognisphere.class))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need this be the implementation object? What is in on DefaultCognisphere that is not in Cognisphere?
Depends on langchain4j/langchain4j#3458