Class RemoteSubagentStub

java.lang.Object
io.agentscope.core.agent.AgentBase
io.agentscope.harness.agent.subagent.RemoteSubagentStub
All Implemented Interfaces:
io.agentscope.core.agent.Agent, io.agentscope.core.agent.CallableAgent, io.agentscope.core.agent.ObservableAgent, io.agentscope.core.agent.StreamableAgent

public final class RemoteSubagentStub extends io.agentscope.core.agent.AgentBase
Placeholder Agent for remote subagents. Execution is delegated to a remote task HTTP server; this instance is only used for registry bookkeeping and should not receive synchronous invokeAgent calls in normal async flows.
  • Field Summary

    Fields inherited from class io.agentscope.core.agent.AgentBase

    CALL_SCOPE_KEY, RUNTIME_CONTEXT_KEY, SHUTDOWN_REQUEST_ID_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteSubagentStub(String name, String description)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected reactor.core.publisher.Mono<io.agentscope.core.message.Msg>
    doCall(List<io.agentscope.core.message.Msg> msgs)
     
    protected reactor.core.publisher.Mono<io.agentscope.core.message.Msg>
    handleInterrupt(io.agentscope.core.interruption.InterruptContext context, io.agentscope.core.message.Msg... originalArgs)
     

    Methods inherited from class io.agentscope.core.agent.AgentBase

    addHook, addSystemHook, afterAgentExecution, beforeAgentExecution, call, call, call, callInternal, callSerializationKey, checkInterruptedAsync, consumeSystemMsgAfterPreCall, doCall, doCall, doObserve, getAgentId, getAgentState, getDescription, getHooks, getInterruptFlag, getInterruptSource, getName, getSortedHooks, getSubscriberCount, hasSubscribers, interrupt, interrupt, interrupt, interruptRunning, isCheckRunning, observe, observe, removeHook, removeSubscribers, removeSystemHook, resetInterruptFlag, resetSubscribers, runLifecycle, seedSystemMsg, stateForCall, stream, stream, stream, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.agentscope.core.agent.Agent

    getToolkit

    Methods inherited from interface io.agentscope.core.agent.CallableAgent

    call, call, call, call, call, call, call, call, call, call

    Methods inherited from interface io.agentscope.core.agent.StreamableAgent

    stream, stream, stream, stream, stream, stream, stream, stream, stream
  • Constructor Details

    • RemoteSubagentStub

      public RemoteSubagentStub(String name, String description)
  • Method Details

    • doCall

      protected reactor.core.publisher.Mono<io.agentscope.core.message.Msg> doCall(List<io.agentscope.core.message.Msg> msgs)
      Specified by:
      doCall in class io.agentscope.core.agent.AgentBase
    • handleInterrupt

      protected reactor.core.publisher.Mono<io.agentscope.core.message.Msg> handleInterrupt(io.agentscope.core.interruption.InterruptContext context, io.agentscope.core.message.Msg... originalArgs)
      Specified by:
      handleInterrupt in class io.agentscope.core.agent.AgentBase