[Feature]: Does AgentScope Java 2 provide a StateGraph-style workflow/graph API?
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:
- A first-class
StateGraph-like API for defining nodes, normal edges, conditional edges, loops, parallel branches, and fan-in joins. - A shared, typed business state that flows through graph nodes, including reducer/merge semantics.
- Graph-level checkpointing and resume from a specific workflow node.
- Graph visualization or debugging support for workflow execution.
- 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!
You can use the workflow of spring-ai-libaba. Or in combination with agentscope-java. https://github.com/alibaba/spring-ai-alibaba https://github.com/alibaba/spring-ai-alibaba/releases#release-v1.1.2.2
🤖 AI Assessment: Question
Classification: Question (area/core, workflow)
Analysis: Good question. AgentScope Java 2 currently uses a ReAct-style agent loop rather than a StateGraph API. The current design emphasizes agent autonomy over explicit graph-based workflows.
Next Steps: A maintainer will provide guidance on workflow patterns.
Automated assessment by github-manager
You can use the workflow of spring-ai-libaba. Or in combination with agentscope-java. https://github.com/alibaba/spring-ai-alibaba https://github.com/alibaba/spring-ai-alibaba/releases#release-v1.1.2.2
How to emit AgentScope native events such as ToolCallStartEvent and ToolCallEndEvent within Spring‑AI‑Alibaba (SAA) StateGraph workflow? These low‑level tool‑lifecycle events are not natively exposed by the SAA framework.