Package com.aispect.api
Interface AiPostExecutionProxy<T,R>
- Type Parameters:
T- Input parameter types for method callsR- Return result type of method call
- All Known Subinterfaces:
AiUnitAgentHandler<T,R>
- All Known Implementing Classes:
AbstractUnitAgent,ContentModerationAgent,DataCleanAgent,FallbackAgent,ImageProcessAgent,ImageStoryAgent,JsonExtractorAgent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Post-execution orchestration agent interface for agents.
Triggered after method execution AI Interceptor proxy logic.
-
Method Summary
Modifier and TypeMethodDescriptionpostExecute(AiInvocationContext<T> ctx, R result) Called after the original method is executed, it is used for post-processing, summarization or format conversion, etc.
-
Method Details
-
postExecute
Called after the original method is executed, it is used for post-processing, summarization or format conversion, etc.- Parameters:
ctx- The interception context for the current method callresult- The execution result of the native method- Returns:
- AI The final result after processing
- Throws:
AiSpectException- Exceptions thrown during orchestration or underlying calls
-