Class AiAgentCdiInterceptor

java.lang.Object
com.aispect.engine.quarkus.AiAgentCdiInterceptor

@Interceptor @Priority(2000) public class AiAgentCdiInterceptor extends Object
Quarkus / CDI Interceptor for handling with AI Annotated method calls.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(jakarta.interceptor.InvocationContext context)
    Interception with AI Annotated method calls. After interception, it will be based on @AiNode or @AiGraphAgent Annotation extracts relevant parameters (such as agent name, model name, etc.), build AiInvocationContext and handed over to the corresponding UnitAgent or GraphAgent Orchestrate and execute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AiAgentCdiInterceptor

      public AiAgentCdiInterceptor()
  • Method Details

    • intercept

      public Object intercept(jakarta.interceptor.InvocationContext context) throws Exception
      Interception with AI Annotated method calls. After interception, it will be based on @AiNode or @AiGraphAgent Annotation extracts relevant parameters (such as agent name, model name, etc.), build AiInvocationContext and handed over to the corresponding UnitAgent or GraphAgent Orchestrate and execute.
      Parameters:
      context - Interceptor context, including intercepted method and parameter information
      Returns:
      AI The result after engine execution
      Throws:
      Exception - If an exception occurs during execution