已过时的 API
目录
-
最终已过时的元素元素说明since 2.0.0, for removal. Use
ReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal in a future minor release. Everystream(...)method on this interface returns the coarse-grainedEventtype, which is a v1 carry-over. UseReActAgent#streamEvents(...)instead — it returnsFlux<io.agentscope.core.event.AgentEvent>, the fine-grained event hierarchy that covers the full agent lifecycle (28 typed events including HITL) and is the single streaming surface going forward. See the v2 changelog section B.4 for migration details.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(Msg)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(Msg)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0. Replaced by theMiddlewareBasesystem. UseReActAgent.streamEvents(java.util.List)for fine-grained event streaming.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead. Middleware exposesonAgent,onReasoning,onActing,onModelCall, andonSystemPrompthook points and replaces this entire hook system.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0, for removal. Will be deleted together with the Hook system.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. The hook system is replaced byMiddlewareBase.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. New code should read context directly fromAgentState.getContext().since 2.0.0. Conversation context lives onAgentState.getContext(); this class is retained for source compatibility with 1.0.x user code.since 2.0.0. Long-term memory is removed; conversation context now lives onAgentState.getContext(). Integrate any cross-session persistence at the application layer.since 2.0.0. Long-term memory is removed.since 2.0.0. Long-term memory is removed.since 2.0.0. Conversation context is now held onAgentState.getContext(). This interface is retained as a write-only mirror for source compatibility with 1.0.x user code.since 2.0.0. UseAgentState.getContext()directly.since 2.0.0. Long-term memory and theHooksystem are removed; reimplement as aMiddlewareBaseif required.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. RAG is being redesigned; legacy adapters remain functional.since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0. Long-term memory is being redesigned around the upcoming reme base class. Hooks added through this path still work.since 2.0.0. SeeReActAgent.Builder.longTermMemory.since 2.0.0. SeeReActAgent.Builder.longTermMemory.since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0, for removal. UseReActAgent.streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent.streamEvents(List)(and overloads that acceptRuntimeContextviacall()-driven lifecycle) for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent.streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0. UseOtelTracingMiddlewareinstead.since 2.0.0. UseOtelTracingMiddlewareinstead.since 2.0.0. UseOtelTracingMiddlewareinstead.
-
已过时的 接口接口说明since 2.0.0, for removal in a future minor release. Every
stream(...)method on this interface returns the coarse-grainedEventtype, which is a v1 carry-over. UseReActAgent#streamEvents(...)instead — it returnsFlux<io.agentscope.core.event.AgentEvent>, the fine-grained event hierarchy that covers the full agent lifecycle (28 typed events including HITL) and is the single streaming surface going forward. See the v2 changelog section B.4 for migration details.since 2.0.0. UseMiddlewareBaseinstead. Middleware exposesonAgent,onReasoning,onActing,onModelCall, andonSystemPrompthook points and replaces this entire hook system.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. Long-term memory is removed; conversation context now lives onAgentState.getContext(). Integrate any cross-session persistence at the application layer.since 2.0.0. Conversation context is now held onAgentState.getContext(). This interface is retained as a write-only mirror for source compatibility with 1.0.x user code.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.Part of theToolExecutionContextlayer which is superseded byRuntimeContext.Part of theToolExecutionContextlayer which is superseded byRuntimeContext.since 2.0.0. UseOtelTracingMiddlewareinstead.
-
已过时的 类类说明since 2.0.0. This is the v1 coarse-grained event type, kept as the return type of the deprecated
stream(...)API and as the wire format consumed by the harness, AGUI, A2A, chat-completions-web, and Kotlin extension modules. New code should useio.agentscope.core.event.AgentEventviaReActAgent#streamEvents(...), which exposes the fine-grained event hierarchy (28 typed events covering the full agent lifecycle and HITL flow). The class will be markedforRemoval = trueonce the dependent internal modules migrate toAgentEvent.since 2.0.0. Used only by the v1Eventstream to attribute events to a spawned subagent. A subagent-source channel for the newio.agentscope.core.event.AgentEventstream is on the v2 roadmap; once it lands,EventSourcewill be markedforRemoval = true.since 2.0.0. Replaced by theMiddlewareBasesystem. UseReActAgent.streamEvents(java.util.List)for fine-grained event streaming.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0, for removal. Will be deleted together with the Hook system.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. The hook system is replaced byMiddlewareBase.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. New code should read context directly fromAgentState.getContext().since 2.0.0. Conversation context lives onAgentState.getContext(); this class is retained for source compatibility with 1.0.x user code.since 2.0.0. Long-term memory is removed.since 2.0.0. UseAgentState.getContext()directly.since 2.0.0. Long-term memory and theHooksystem are removed; reimplement as aMiddlewareBaseif required.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.since 2.0.0. The skill package and the hook system are removed; manage markdown skill catalogs in application code or viaMiddlewareBase.UseRuntimeContextinstead. Register POJOs viaRuntimeContext.builder().put(Type.class, value).build()and pass toagent.call(msg, runtimeContext).since 2.0.0. UseOtelTracingMiddlewareinstead.since 2.0.0. UseOtelTracingMiddlewareinstead.
-
已过时的 枚举类枚举类说明since 2.0.0. The v1 coarse-grained event discriminator. New code should use
io.agentscope.core.event.AgentEventType(and the typedAgentEventsubclasses) exposed byReActAgent#streamEvents(...).since 2.0.0. UseMiddlewareBaseinstead.since 2.0.0. Long-term memory is removed.since 2.0.0. The rag package is removed; integrate retrieval at the application layer.
-
已过时的 记录类
-
已过时的 字段字段说明Permission HITL no longer uses a Reactor Sink. Confirm results are now delivered via a second
agent.call(msgs)carrying aConfirmResultpayload — seeapplyConfirmResults. This constant is retained as a compile-time marker and will be removed in a future release.
-
已过时的 方法方法说明No longer needed; ReActAgent uses per-session InterruptControl.No-op stub.Returns USER. Per-session interrupt source is on AgentState.interruptControl().Subclasses should implement per-session interrupt via RuntimeContext.Subclasses should implement per-session interrupt via RuntimeContext.Subclasses should implement per-session interrupt via RuntimeContext.No longer enforced; per-session serialization handles concurrency.No-op; per-session interrupt state is managed by AgentState.interruptControl().since 2.0.0, for removal. Use
ReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(Msg)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(Msg)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent#streamEvents(...)for the fine-grainedAgentEventstream.No longer enforced; per-session serialization handles concurrency.since 2.0.0. RAG is being redesigned; legacy adapters remain functional.since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0. Long-term memory is being redesigned around the upcoming reme base class. Hooks added through this path still work.since 2.0.0. SeeReActAgent.Builder.longTermMemory.since 2.0.0. SeeReActAgent.Builder.longTermMemory.since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0. SeeReActAgent.Builder.knowledge(io.agentscope.core.rag.Knowledge).since 2.0.0. Skills now flow throughReActAgent.Builder.skillRepository(io.agentscope.core.skill.repository.AgentSkillRepository)/ReActAgent.Builder.skillRepositories; legacySkillBoxinstances are still accepted for source compatibility, but combining askillBox(...)withskillRepository(...)is untested — new code should preferReActAgent.Builder.skillRepository(AgentSkillRepository).UseRuntimeContextwithagent.call(msg, runtimeContext)or register POJOs directly viaRuntimeContext.builder().put(Type, value).UseReActAgent.getAgentState(RuntimeContext)orReActAgent.getAgentState(String, String)with explicit session identity. This method delegates to the default session slot.UsegetAgentState(userId, sessionId).getPermissionContext()instead.UsegetAgentState(userId, sessionId).getPermissionContext()instead.UseReActAgent.interrupt(String, String)with explicit userId/sessionId.UseReActAgent.interrupt(String, String)with explicit userId/sessionId.UseReActAgent.interrupt(String, String, Msg)with explicit userId/sessionId.since 2.0.0, for removal. UseReActAgent.streamEvents(List)for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent.streamEvents(List)(and overloads that acceptRuntimeContextviacall()-driven lifecycle) for the fine-grainedAgentEventstream.since 2.0.0, for removal. UseReActAgent.streamEvents(List)for the fine-grainedAgentEventstream.UseToolCallParam.Builder.runtimeContext(RuntimeContext)instead.UseToolCallParam.getRuntimeContext()instead.UseRuntimeContextinstead.UseRuntimeContextinstead.
-
已过时的 构造器构造器说明Use
AgentBase(String, String, List)instead.UseMcpTool(String, String, Map, Map, McpClientWrapper, Map, String, boolean)so the MCP server name and read-only hint are propagated. Kept for source compatibility with callers that pre-date theToolBaseintegration.UseMcpTool(String, String, Map, Map, McpClientWrapper, Map, String, boolean)so the MCP server name and read-only hint are propagated.UseMcpTool(String, String, Map, Map, McpClientWrapper, Map, String, boolean)so the MCP server name and read-only hint are propagated.