Interface AiPreExecutionProxy<T>

Type Parameters:
T - Input parameter types for method calls
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 AiPreExecutionProxy<T>
Pre-execution orchestration agent interface for agents.

Triggered before method execution AI Interceptor proxy logic.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called before the original method is executed, it is used for content review or pre-processing.
  • Method Details

    • preExecute

      void preExecute(AiInvocationContext<T> ctx) throws AiSpectException
      Called before the original method is executed, it is used for content review or pre-processing.
      Parameters:
      ctx - The interception context for the current method call
      Throws:
      AiSpectException - Exceptions thrown during orchestration or underlying calls