Add AgentExecutor to the core - Take a look to the LangGraph4j #864
Replies: 4 comments 4 replies
-
HI, @bsorrentino Yes, we are looking into adding more features for building agents, so this is very timely! Regarding LangGraph(4j), could you please provide a good example of a use case where modelling the logic as a graph is beneficial? All the examples that I've seen so far do not really require a graph (and cycles), they can be implemented as chains. I will dive into it more deeply probably next week, but in general: yes, would be cool to have it in the core! |
Beta Was this translation helpful? Give feedback.
-
Hi @langchain4j, thanks for feedback. I first assumed that since langchain4j was inspired by langchain, following the langgraph strategy was in accordance with the goals of the project.
Yes I'll do, however the AgentExecutor itself use a cycle, as diagram below: ---
title: AgentExecutor (with LangGraph)
---
stateDiagram-v2
[*] --> agent : prompt
state if_state <<choice>>
agent --> if_state : reasoning
if_state --> [*]: finish
if_state --> action : function call
action --> agent : result
|
Beta Was this translation helpful? Give feedback.
-
I've released another use case using |
Beta Was this translation helpful? Give feedback.
-
@langchain4j thank for feedback. In the correction subgraph there is a cycle, anyway I understood that LangGraph is not in the LangChain4j's near future strategy. Thanks again and keep going with your amazing project. |
Beta Was this translation helpful? Give feedback.
-
Hi
I've drafted a first preview release of a LangGraph implementation in Java ( take a look here )
To validate such implementation I've build on it an AgentExecutor, that is the feature behind the Agents strategy in original Langchain project, using langchain4j.
I would to know if there is interest to add AgentExecutor implementation in core module (that would be great) so We can discuss the better way to do this
Beta Was this translation helpful? Give feedback.
All reactions