agentscope-ai / agentscope-ai/agentscope-java
[Feature]: Does AgentScope Java 2 provide a StateGraph-style workflow/graph API?
- 主要語言
- Java
- 星號
- 5.6k
- 分支
- 1.3k
- 平均合併
- 4 天 12 小時
- 30 天內合併 PR
- 77
描述
Hi AgentScope team,
I am evaluating AgentScope Java 2 for a customer-service system with several deterministic, stateful workflows, such as:
- ticket creation with slot collection, validation, confirmation, and submission
- RAG retrieval, reranking, and answer generation
- survey analysis with conditional branches and parallel processing
- report generation with multiple dependent steps
I understand that AgentScope Java 2 provides ReActAgent/HarnessAgent, tools, middleware, subagents, Plan Mode, event streaming, and AgentState persistence.
However, I would like to clarify whether AgentScope Java 2 currently provides a workflow abstraction comparable to LangGraph-style graphs, specifically:
1. A first-class `StateGraph`-like API for defining nodes, normal edges, conditional edges, loops, parallel branches, and fan-in joins.
2. A shared, typed business state that flows through graph nodes, including reducer/merge semantics.
3. Graph-level checkpointing and resume from a specific workflow node.
4. Graph visualization or debugging support for workflow execution.
5. A recommended built-in alternative for deterministic business workflows if such a graph API is not available.
I noticed that the Java 2 migration guide says the previous `Pipeline`, `SequentialPipeline`, and `FanoutPipeline` APIs were removed and suggests middleware, subagents, and event streams instead.
Could you confirm the current recommended approach?
More specifically: for deterministic business workflows, should we:
- implement orchestration in ordinary Java code/state machines;
- use AgentScope's ReActAgent/HarnessAgent with tools and subagents;
- use an external workflow framework such as LangGraph4j;
- or use another AgentScope module/API that I may have missed?
If there is a current or planned graph/workflow capability, could you please point me to the documentation or roadmap?
Thanks!
貢獻指南
評估
這個 Issue 還沒有評估資料。