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 TypeMethodDescriptionprotected io.agentscope.core.ReActAgentstatic ReActAgentWithStarterRunnernewInstance(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> agentBuilder) Build newReActAgentWithStarterRunnerinstance fromObjectProvider.Methods inherited from class io.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner
getAgentDescription, getAgentName, stop, streamEventsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
buildReActAgentin classio.agentscope.core.a2a.server.executor.runner.BaseReActAgentRunner
-
newInstance
public static ReActAgentWithStarterRunner newInstance(org.springframework.beans.factory.ObjectProvider<io.agentscope.core.ReActAgent> agentBuilder) Build newReActAgentWithStarterRunnerinstance fromObjectProvider.- Parameters:
agentBuilder- ObjectProvider ofReActAgent- Returns:
- new
ReActAgentWithStarterRunnerinstance
-