Class SkillCuratorMiddleware
java.lang.Object
io.agentscope.harness.agent.middleware.SkillCuratorMiddleware
- All Implemented Interfaces:
io.agentscope.core.middleware.MiddlewareBase,HarnessRuntimeMiddleware
Schedules
SkillCurator runs after the main call() completes. Gates on the
curator's interval + PeriodicGate, and runs on a single-thread daemon executor so the
agent loop is never blocked.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Stop accepting new background work; idempotent.curator()Direct access to the underlying curator (foragent.runCuratorOnce).reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>onAgent(io.agentscope.core.agent.Agent agent, io.agentscope.core.agent.RuntimeContext ctx, io.agentscope.core.middleware.AgentInput input, Function<io.agentscope.core.middleware.AgentInput, reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>> next) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.agentscope.core.middleware.MiddlewareBase
onActing, onModelCall, onReasoning, onSystemPrompt, order
-
Constructor Details
-
SkillCuratorMiddleware
-
-
Method Details
-
onAgent
public reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent> onAgent(io.agentscope.core.agent.Agent agent, io.agentscope.core.agent.RuntimeContext ctx, io.agentscope.core.middleware.AgentInput input, Function<io.agentscope.core.middleware.AgentInput, reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>> next) - Specified by:
onAgentin interfaceio.agentscope.core.middleware.MiddlewareBase
-
close
public void close()Stop accepting new background work; idempotent. -
curator
Direct access to the underlying curator (foragent.runCuratorOnce).
-