Package com.aispect.engine.quarkus
Class AiAgentCdiInterceptor
java.lang.Object
com.aispect.engine.quarkus.AiAgentCdiInterceptor
Quarkus / CDI Interceptor for handling with AI Annotated method calls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintercept(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.
-
Constructor Details
-
AiAgentCdiInterceptor
public AiAgentCdiInterceptor()
-
-
Method Details
-
intercept
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
-