Object RunSubagent

  • All Implemented Interfaces:

    
    public class RunSubagent
    
                        

    Convenience methods for nesting agents for use with annotation model.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static RunSubagent INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T instance(Agent agent, Class<T> type) Run the agent instance as a subagent and return the result.
      final <T extends Any> T instance(Agent instance)
      final static <T extends Any> T fromAnnotatedInstance(Object instance, Class<T> type) Run the @Agent annotated instance as a subagent and return the result.
      final <T extends Any> T fromAnnotatedInstance(Object instance)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • instance

         final static <T extends Any> T instance(Agent agent, Class<T> type)

        Run the agent instance as a subagent and return the result.

        Parameters:
        agent - The agent instance to run as a subagent.
        type - The expected return type.
      • fromAnnotatedInstance

         final static <T extends Any> T fromAnnotatedInstance(Object instance, Class<T> type)

        Run the @Agent annotated instance as a subagent and return the result.

        Parameters:
        instance - The @Agent annotated instance to run as a subagent.
        type - The expected return type.