Interface AiUnitAgentHandler<T,R>

Type Parameters:
T - Input parameter types during agent processing (Input parameter type)
R - Return result type after agent execution (Return result type)
All Superinterfaces:
AiAgentFilter, AiExceptionProxy<T,R>, AiExecutionProxy<T,R>, AiPostExecutionProxy<T,R>, AiPreExecutionProxy<T>
All Known Implementing Classes:
AbstractUnitAgent, ContentModerationAgent, DataCleanAgent, FallbackAgent, ImageProcessAgent, ImageStoryAgent, JsonExtractorAgent

public interface AiUnitAgentHandler<T,R> extends AiAgentFilter, AiPreExecutionProxy<T>, AiPostExecutionProxy<T,R>, AiExceptionProxy<T,R>, AiExecutionProxy<T,R>
unit agent processor (Unit Agent Handler)

This interface is the top-level composite abstraction of the unit agent's processing logic, integrating the core capabilities of the agent at each life cycle stage during execution. Classes that implement this interface will also have the following capabilities:

  • Conditional filtering (AiAgentFilter):Determine whether the agent should be executed.
  • pre-execution agent (AiPreExecutionProxy):Triggered before method execution.
  • post-execution agent (AiPostExecutionProxy):Triggered after method execution.
  • exception agent (AiExceptionProxy):Triggered when an exception occurs during method execution.
  • core orchestration (AiExecutionProxy):The actual business logic of the agent completely replaces the native method.