Package com.embabel.agent.api.annotation
Class SubagentExecutionRequest
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class SubagentExecutionRequest extends SpecialReturnException
Internal exception to signal sub-agent execution.
-
-
Constructor Summary
Constructors Constructor Description SubagentExecutionRequest(Object instance, Class<?> type)
-
Method Summary
Modifier and Type Method Description final ObjectgetInstance()Objecthandle(ActionContext actionContext)Process the special return and produce the final result. -
Methods inherited from class com.embabel.agent.api.annotation.SpecialReturnException
getType -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInstance
final Object getInstance()
-
handle
Object handle(ActionContext actionContext)
Process the special return and produce the final result. This should be of the expected type, although Exception classes cannot be parameterized.
-
-
-
-