agentscope-ai / agentscope-ai/agentscope-java

[Feature]: Does AgentScope Java 2 provide a StateGraph-style workflow/graph API?

Ouverte
#2,161 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area/core/agent enhancement
Langage dominant
Java
Étoiles
5.6k
Forks
1.3k
Merge moyen
4 j 12 h
PR mergées (30 j)
77

Description

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!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.