Package com.aispect.api
Interface AiExecutionProxy<T,R>
- Type Parameters:
T- Input parameter types for method callsR- 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.
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 TypeMethodDescriptionexecute(AiInvocationContext<T> ctx) Arrange the entire AI The calling process completely replaces the execution of native methods.
-
Method Details
-
execute
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
-