freshcrate
Skin:/
Home > AI Agents > agentscope-java

agentscope-java

AgentScope Java: Agent-Oriented Programming for Building LLM Applications

Why this rank:Strong adoptionRecent releaseHealthy release cadence

Description

AgentScope Java: Agent-Oriented Programming for Building LLM Applications

README

AgentScope Logo

Build Production-Ready AI Agents in Java

๐Ÿ“– Documentation ย |ย  ไธญๆ–‡ ย |ย  Discord

License JDK 17+ Maven Central Ask DeepWiki


AgentScope Java is an agent-oriented programming framework for building LLM-powered applications. It provides everything you need to create intelligent agents: ReAct reasoning, tool calling, memory management, multi-agent collaboration, and more.

Highlights

๐ŸŽฏ Smart Agents, Full Control

AgentScope adopts the ReAct (Reasoning-Acting) paradigm, enabling agents to autonomously plan and execute complex tasks. Unlike rigid workflow-based approaches, ReAct agents dynamically decide which tools to use and when, adapting to changing requirements in real-time.

However, autonomy without control is a liability in production. AgentScope provides comprehensive runtime intervention mechanisms:

  • Safe Interruption - Pause agent execution at any point while preserving full context and tool state, enabling seamless resumption without data loss
  • Graceful Cancellation - Terminate long-running or unresponsive tool calls without corrupting agent state, allowing immediate recovery and redirection
  • Human-in-the-Loop - Inject corrections, additional context, or guidance at any reasoning step through the Hook system, maintaining human oversight over critical decisions

๐Ÿ› ๏ธ Built-in Tools

AgentScope includes production-ready tools that address common challenges in agent development:

  • PlanNotebook - A structured task management system that decomposes complex objectives into ordered, trackable steps. Agents can create, modify, pause, and resume multiple concurrent plans, ensuring systematic execution of multi-step workflows.

  • Structured Output - A self-correcting output parser that guarantees type-safe responses. When LLM output deviates from the expected format, the system automatically detects errors and guides the model to produce valid output, mapping results directly to Java POJOs without manual parsing.

  • Long-term Memory - Persistent memory storage with semantic search capabilities across sessions. Supports automatic management, agent-controlled recording, or hybrid modes. Enables multi-tenant isolation for enterprise deployments where agents serve multiple users independently.

  • RAG (Retrieval-Augmented Generation) - Seamless integration with enterprise knowledge bases. Supports both self-hosted embedding-based retrieval and managed services like Alibaba Cloud Bailian, grounding agent responses in authoritative data sources.

๐Ÿ”Œ Seamless Integration

AgentScope is designed to integrate with existing enterprise infrastructure without requiring extensive modifications:

  • MCP Protocol - Integrate with any MCP-compatible server to instantly extend agent capabilities. Connect to the growing ecosystem of MCP tools and servicesโ€”from file systems and databases to web browsers and code interpretersโ€”without writing custom integration code.

  • A2A Protocol - Enable distributed multi-agent collaboration through standard service discovery. Register agent capabilities to Nacos or similar registries, allowing agents to discover and invoke each other as naturally as calling microservices.

๐Ÿš€ Production Grade

Built for enterprise deployment requirements:

  • High Performance - Reactive architecture based on Project Reactor ensures non-blocking execution. GraalVM native image compilation achieves 200ms cold start times, making AgentScope suitable for serverless and auto-scaling environments.

  • Security Sandbox - AgentScope Runtime provides isolated execution environments for untrusted tool code. Includes pre-built sandboxes for GUI automation, file system operations, and mobile device interaction, preventing unauthorized access to system resources.

  • Observability - Native integration with OpenTelemetry for distributed tracing across the entire agent execution pipeline. AgentScope Studio provides visual debugging, real-time monitoring, and comprehensive logging for development and production environments.

Quick Start

Requirements: JDK 17+

<dependency>
    <groupId>io.agentscope</groupId>
    <artifactId>agentscope</artifactId>
    <version>1.0.11</version>
</dependency>
ReActAgent agent = ReActAgent.builder()
    .name("Assistant")
    .sysPrompt("You are a helpful AI assistant.")
    .model(DashScopeChatModel.builder()
        .apiKey(System.getenv("DASHSCOPE_API_KEY"))
        .modelName("qwen-max")
        .build())
    .build();

Msg response = agent.call(Msg.builder()
        .textContent("Hello!")
        .build()).block();
System.out.println(response.getTextContent());

For more examples, see the documentation.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Community

Discord DingTalk WeChat

License

Apache License 2.0 - see LICENSE for details.

Publications

If you find AgentScope helpful, please cite our papers:

Contributors

Release History

VersionChangesUrgencyDate
v2.0.0-RC1# AgentScope Java 2.0.0-RC1 AgentScope Java steps up from a "build an agent" toolkit toward a complete platform for **running agents in production**. 2.0 aims to preserve compatibility with 1.x where possible so that most users can upgrade smoothly โ€” see the Migration Guide below. Full docs: [docs/v2/en](https://java.agentscope.io/), [docs/v2/zh](https://java.agentscope.io/v2/zh/intro.html) ยท Full changelog: [change-log.md](https://java.agentscope.io/v2/en/docs/change-log.html) ## HHigh6/2/2026
v1.1.0-RC1Build your own OpenClaw-style agent that **keeps evolving inside a workspace**, while the same stack scales to **enterprise, distributed deployments** and can run tools and code in a **securely isolated** execution environment. ## Highlights This release introduces **`agentscope-harness`**, a production-oriented layer on top of `agentscope-core`โ€™s `ReActAgent`. The single user-facing entry point is **`HarnessAgent`**. Harness does not replace the ReAct loop; it **injects hooks and a curateHigh5/11/2026
v1.0.12This release introduces Long-term Memory capabilities, bolsters MCP integration, and adds built-in execution tracing mechanisms, alongside an important refactoring of skill metadata and crucial stability improvements across the core framework. ## ๐ŸŒŸ Key Highlights ### Bailian Long-Term Memory AgentScope-Java v1.0.12 introduces robust support for **Bailian long-term memory** (#1188). This significantly enhances the ability of agents to maintain context, recall historical interactions, and High4/30/2026
v1.0.11This release focuses on expanding **Multi-Agent Orchestration**, strengthening **Persistent Storage**, and introducing **Graceful Agent Shutdown** mechanisms, alongside crucial stability improvements across the core framework. ## ๐ŸŒŸ Key Highlights ### Graceful Agent Shutdown AgentScope-Java v1.0.11 implements comprehensive support for **graceful agent shutdown** (#909). Developers can now safely terminate agent, ensuring that all running tasks, tool executions, and state saving complete rMedium3/31/2026
v1.0.10This release focuses on strengthening **Skill & Prompt Management** with upgraded Nacos integrations, expanding **Model & Voice** capabilities, and improving the stability of agent execution flows and OpenAI model interactions. ## ๐ŸŒŸ Key Highlights ### Full Integration with Nacos AI Registry (v3.2.0-BETA) AgentScope-Java v1.0.10 now fully supports the Nacos AI Registry, enabling seamless runtime access to centrally managed Prompts and Skills โ€” empowering dynamic, cloud-native agent orcheLow3/11/2026
v1.0.9This release marks a milestone with the introduction of **Online Training** capabilities, empowering agents to learn and adapt continuously. It also significantly enhances the **Skill & Tool System** with broader compatibility (Spring Boot Fat JAR, Nacos, Git), and improves **Streaming & Observability** for enterprise-grade deployments. ## ๐ŸŒŸ Key Highlights ### 1. Online Training Introduces foundational support for **Online Training** , enabling dynamic model fine-tuning at runtime and Low2/12/2026
v1.0.8This release introduces multimodal capabilities with **Qwen TTS integration**, significantly expands the **RAG ecosystem** with PostgreSQL and Elasticsearch support, and empowers agents with robust **Code Execution capabilities**. ## ๐ŸŒŸ Key Highlights ### 1. Qwen TTS Integration We have officially expanded the multimodal capabilities of the framework by integrating **Qwen (Tongyi Qianwen) Text-to-Speech**. * **Voice Generation:** Agents can now generate high-quality speech output usiLow1/26/2026
v1.0.7This release expands the ecosystem with comprehensive **Ollama integration** for local LLMs, introduces **Kotlin Coroutine extensions** for a more modern development experience, and significantly enhances the **Skill and RAG systems** with dynamic JAR loading and Tika document parsing. ## ๐ŸŒŸ Key Highlights ### 1. Comprehensive Ollama Integration We have added full support for **Ollama**, enabling seamless integration with local Large Language Models (LLMs). * **Capabilities:** IncludLow1/14/2026
v1.0.6This release introduces significant enhancements to **Human-in-the-Loop (HITL)** interaction patterns and optimizes the **streaming experience** for tool usage. It also includes new integrations (Nacos), API simplifications, and various bug fixes. ## ๐ŸŒŸ Key Highlights ### 1. Comprehensive Human-in-the-Loop (HITL) Support We have refactored the execution flow to support robust HITL scenarios. You can now suspend agent execution to await human input, confirmation, or modification, and theLow1/5/2026
v1.0.5**๐ŸŽ‰ The 2025 Finale Release!** As we wrap up 2025, we are proud to present **AgentScope Java v1.0.5**. This marks our 9th release of the year. We extend our sincere gratitude to everyone who contributed code, feedback, and support to the AgentScope Java community over the past few months. ## ๐Ÿš€ Key Highlights * **Universal Model Support:** We have completely refactored the OpenAI request handling (replacing the SDK with a native HTTP client) to support all mainstream models from multipLow12/31/2025
v1.0.4## What's Changed * feat: enable dependabot by @AlbumenJ in https://github.com/agentscope-ai/agentscope-java/pull/244 * feat: Support multimodal tool by @guanxuc in https://github.com/agentscope-ai/agentscope-java/pull/241 * feat: add reasoning chunk and result filtering options to StreamOptions by @shlokmestry in https://github.com/agentscope-ai/agentscope-java/pull/269 * refactor(a2a): migrate server properties to use Spring Environment to adapt spring boot 4. by @KomachiSion in https://giLow12/26/2025
v1.0.3## What's Changed * fix: Msg by @GTyingzi in https://github.com/agentscope-ai/agentscope-java/pull/184 * feat(a2a): Support A2A protocol calling by A2aAgent. by @KomachiSion in https://github.com/agentscope-ai/agentscope-java/pull/172 * fix(rag): Missing the dimension parameter for embedding by @guanxuc in https://github.com/agentscope-ai/agentscope-java/pull/188 * feat(rag): OpenAI Embedding Support by @xuanmiss in https://github.com/agentscope-ai/agentscope-java/pull/191 * feat(chat): EnhLow12/19/2025
v1.0.2## What's Changed * fix: change rag&longtermmemory hook from prereasoning to pre call by @shiyiyue1102 in https://github.com/agentscope-ai/agentscope-java/pull/156 * refactor(structured-output): change TOOL_CHOICE to deferred forcing mode and preserve tool history by @AlbumenJ in https://github.com/agentscope-ai/agentscope-java/pull/160 * feat: Support MySQL Session Storage #152 by @uuuyuqi in https://github.com/agentscope-ai/agentscope-java/pull/155 * feat:support auto context memory by @shLow12/11/2025
v1.0.1## What's Changed * feat: add checkRunning parameter to control concurrent agent calls by @AlbumenJ in https://github.com/agentscope-ai/agentscope-java/pull/111 * fix: installation docs by @AlbumenJ in https://github.com/agentscope-ai/agentscope-java/pull/117 * feat: add ChatUsage to Msg metadata for token usage tracking by @AlbumenJ in https://github.com/agentscope-ai/agentscope-java/pull/118 * refactor: reuse ObjectMapper to avoid repeated construction overhead. by @yangl in https://githubLow12/8/2025
v1.0.0The first stable release of AgentScope Java - an agent-oriented programming framework for building LLM applications. ## Installation **Requires JDK 17+** ```xml <dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope</artifactId> <version>1.0.0</version> </dependency> ``` ## Highlights - Multi-Model Support - DashScope, OpenAI, Anthropic, Gemini out of the box - ReAct Agent - Built-in reasoning and acting loop with tool calling - Annotation-based ToolLow11/30/2025
v0.2.1## AgentScope Studio Integration - Real-time Visualization: Added AgentScope Studio integration with real-time visualization capabilities for monitoring agent execution (#57) ## RAG Support - Comprehensive RAG Framework: Introduced full-featured RAG (Retrieval-Augmented Generation) support including: - Embedding model integration - Vector store implementations - Document retrieval capabilities (#55) ## Performance - Non-blocking I/O: Improved model execution pLow11/18/2025
v0.2.0We're excited to announce the release of AgentScope Java v0.2.0, a major milestone that brings production-ready features, comprehensive multi-agent capabilities, and full alignment with the Python version. ## Multi-Agent System - MsgHub & Pipeline (#39, #36): Message broadcasting and orchestration for multi-agent collaboration - PlanNotebook (#40): Structured multi-step task planning and execution - Werewolf Game Example (#51): Complete multi-agent game with i18n support demonstratLow11/6/2025
v0.1.0> Please note that this is an early version, so the APIs and dependencies in the current version do not guarantee long-term stability. Future versions might bring breaking changes. ## ๐Ÿš€ Quickstart ### Installation AgentScope Java requires **jdk 17** or higher. ```bash <dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope-core</artifactId> <version>0.1.0</version> </dependency> ``` ### Hello AgentScope! Start with a basic ReActAgent that replies to usLow9/24/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

adk-pythonAn open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.v2.2.0
Autonomous-AgentsAutonomous Agents (LLMs) research papers. Updated Daily.main@2026-06-03
adk-jsAn open-source, code-first Typescript toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.devtools-v1.2.0
adk-javaAn open-source, code-first Java toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.v1.4.0
sagentsBuild interactive AI agents in Elixir with OTP supervision, middleware composition, human-in-the-loop approvals, sub-agent delegation, and real-time Phoenix LiveView integration. Built on LangChain.v0.8.0-rc.10

More from agentscope-ai

agentscopeBuild and run agents you can see, understand and trust.
agentscope-runtimeA production-ready runtime framework for agent apps with secure tool sandboxing, Agent-as-a-Service APIs, scalable deployment, full-stack observability, and broad framework compatibility.

More in AI Agents

hermes-agentThe agent that grows with you
awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
CopilotKitThe Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
e2bE2B SDK that give agents cloud environments