Class SubagentExecutionRequest

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Object getInstance()
      Object handle(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
    • Constructor Detail

      • SubagentExecutionRequest

        SubagentExecutionRequest(Object instance, Class<?> type)
    • Method Detail

      • 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.