Interface AiPostExecutionProxy<T,R>

Type Parameters:
T - Input parameter types for method calls
R - 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.

@FunctionalInterface public interface AiPostExecutionProxy<T,R>
Post-execution orchestration agent interface for agents.

Triggered after method execution AI Interceptor proxy logic.

  • Method Summary

    Modifier and Type
    Method
    Description
    Called after the original method is executed, it is used for post-processing, summarization or format conversion, etc.
  • Method Details

    • postExecute

      R postExecute(AiInvocationContext<T> ctx, R result) throws AiSpectException
      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 call
      result - The execution result of the native method
      Returns:
      AI The final result after processing
      Throws:
      AiSpectException - Exceptions thrown during orchestration or underlying calls