Class SkillCuratorMiddleware

java.lang.Object
io.agentscope.harness.agent.middleware.SkillCuratorMiddleware
All Implemented Interfaces:
io.agentscope.core.middleware.MiddlewareBase, HarnessRuntimeMiddleware

public class SkillCuratorMiddleware extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stop accepting new background work; idempotent.
    Direct access to the underlying curator (for agent.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, wait

    Methods inherited from interface io.agentscope.core.middleware.MiddlewareBase

    onActing, onModelCall, onReasoning, onSystemPrompt, order
  • Constructor Details

    • SkillCuratorMiddleware

      public SkillCuratorMiddleware(SkillCurator curator)
  • 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:
      onAgent in interface io.agentscope.core.middleware.MiddlewareBase
    • close

      public void close()
      Stop accepting new background work; idempotent.
    • curator

      public SkillCurator curator()
      Direct access to the underlying curator (for agent.runCuratorOnce).