Package com.aispect.api
Interface AiUnitEngine
- All Known Implementing Classes:
UnitEngine
public interface AiUnitEngine
Unit Agent Execution Engine (Unit Engine)interface.
Responsible for receiving and orchestrating multiple execution target methods AiUnitAgentHandler。
-
Method Summary
Modifier and TypeMethodDescriptionexecuteUnitAgents(AiUnitAgentHandler<?, ?>[] handlers, Object target, Method method, Object[] args, AiInvocationContext<Object> ctx) execution unit agent logic
-
Method Details
-
executeUnitAgents
Object executeUnitAgents(AiUnitAgentHandler<?, ?>[] handlers, Object target, Method method, Object[] args, AiInvocationContext<Object> ctx) throws Throwableexecution unit agent logic- 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
-