Class AgentScopeAgentExecutor
java.lang.Object
io.agentscope.core.a2a.server.executor.AgentScopeAgentExecutor
- All Implemented Interfaces:
io.a2a.server.agentexecution.AgentExecutor
public class AgentScopeAgentExecutor
extends Object
implements io.a2a.server.agentexecution.AgentExecutor
Implementation of A2A
AgentExecutor for AgentScope.
For Current Implementation, will create a new Agent for each request.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentScopeAgentExecutor(AgentRunner agentRunner, AgentExecuteProperties agentExecuteProperties) -
Method Summary
-
Constructor Details
-
AgentScopeAgentExecutor
public AgentScopeAgentExecutor(AgentRunner agentRunner, AgentExecuteProperties agentExecuteProperties)
-
-
Method Details
-
cancel
public void cancel(io.a2a.server.agentexecution.RequestContext context, io.a2a.server.events.EventQueue eventQueue) throws io.a2a.spec.JSONRPCError - Specified by:
cancelin interfaceio.a2a.server.agentexecution.AgentExecutor- Throws:
io.a2a.spec.JSONRPCError
-
execute
public void execute(io.a2a.server.agentexecution.RequestContext context, io.a2a.server.events.EventQueue eventQueue) throws io.a2a.spec.JSONRPCError - Specified by:
executein interfaceio.a2a.server.agentexecution.AgentExecutor- Throws:
io.a2a.spec.JSONRPCError
-