Class ReActAgentWithStarterRunner

java.lang.Object
io.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner
io.agentscope.spring.boot.a2a.runner.ReActAgentWithStarterRunner
All Implemented Interfaces:
io.agentscope.core.a2a.server.executor.runner.AgentRunner

public class ReActAgentWithStarterRunner extends io.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner implements io.agentscope.core.a2a.server.executor.runner.AgentRunner
Default Implementation for AgentRunner by ReActAgent.

Use ReActAgent directly to handler request from A2A client. In this implementation, ReActAgent will be created for each request and be cached to intercept when the request is stopped.

ReActAgent should be created from ObjectProvider, which build from io.agentscope.spring.boot.AgentscopeAutoConfiguration#agentscopeReActAgent(Model, Memory, Toolkit, AgentscopeProperties).

  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.agentscope.core.ReActAgent
     
    newInstance(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> agentBuilder)
    Build new ReActAgentWithStarterRunner instance from ObjectProvider.

    Methods inherited from class io.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner

    getAgentDescription, getAgentName, stop, streamEvents

    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.a2a.server.executor.runner.AgentRunner

    getAgentDescription, getAgentName, stop, streamEvents
  • Method Details

    • buildReActAgent

      protected io.agentscope.core.ReActAgent buildReActAgent()
      Specified by:
      buildReActAgent in class io.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner
    • newInstance

      public static ReActAgentWithStarterRunner newInstance(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> agentBuilder)
      Build new ReActAgentWithStarterRunner instance from ObjectProvider.
      Parameters:
      agentBuilder - ObjectProvider of ReActAgent
      Returns:
      new ReActAgentWithStarterRunner instance