agentscope-ai / agentscope-ai/agentscope-java

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

Aberta
#2,161 3 comentários 0 reações 0 responsáveis Ver no GitHub
area/core/agent enhancement
Linguagem predominante
Java
Estrelas
5.6k
Forks
1.3k
Merge médio
4d 12h
PRs com merge (30d)
77

Descrição

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!

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.