Class UnitEngine
java.lang.Object
com.aispect.core.engine.runtime.executor.unit.UnitEngine
- All Implemented Interfaces:
AiUnitEngine
Unit Agent Execution engine, belonging torunning phase (Runtime)Responsibilities.
from AgentInvocationCacheImpl middle
obtained Handler List, configured according to annotations AiExecutePhase Route to the corresponding execution logic
(preExecute / postExecute / onException / execute)。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteUnitAgents(AiUnitAgentHandler<?, ?>[] handlers, Object target, Method method, Object[] args, AiInvocationContext<Object> ctx) execution unit agent logic
-
Constructor Details
-
UnitEngine
public UnitEngine()
-
-
Method Details
-
executeUnitAgents
public Object executeUnitAgents(AiUnitAgentHandler<?, ?>[] handlers, Object target, Method method, Object[] args, AiInvocationContext<Object> ctx) throws ThrowableDescription copied from interface:AiUnitEngineexecution unit agent logic- Specified by:
executeUnitAgentsin interfaceAiUnitEngine- Parameters:
handlers- Array of pre-instantiated proxy processorstarget- target object instancemethod- The original method that was calledargs- method parametersctx- Context information for the current proxy call- Returns:
- The final return result after orchestration execution
- Throws:
Throwable- Any exceptions thrown during execution
-