Interface AiExecutionProxy<T,R>

Type Parameters:
T - Input parameter types for method calls
R - Expected result type returned
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 AiExecutionProxy<T,R>
The core orchestration agent interface for agents.

Triggered by default when method is called AI The core proxy logic of the interceptor replaces native method execution.

  • Method Summary

    Modifier and Type
    Method
    Description
    Arrange the entire AI The calling process completely replaces the execution of native methods.
  • Method Details

    • execute

      R execute(AiInvocationContext<T> ctx) throws AiSpectException
      Arrange the entire AI The calling process completely replaces the execution of native methods.
      Parameters:
      ctx - The interception context for the current method call
      Returns:
      AI The result after processing
      Throws:
      AiSpectException - Exceptions thrown during orchestration or underlying calls