Interface EarlyTerminationPolicy

  • All Implemented Interfaces:

    
    public interface EarlyTerminationPolicy
    
                        

    Enables early termination of an agent process.

    Early termination policies provide a mechanism to stop agent processes before they naturally complete. This is useful for enforcing constraints like maximum number of actions, budget limits, or other custom termination conditions.

    Implementations should be stateless and thread-safe.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract EarlyTermination shouldTerminate(AgentProcess agentProcess) Checks if the agent process should be terminated early.
      String getName()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • shouldTerminate

         abstract EarlyTermination shouldTerminate(AgentProcess agentProcess)

        Checks if the agent process should be terminated early.

        Parameters:
        agentProcess - The agent process to evaluate
        Returns:

        An EarlyTermination object if the process should be terminated, or null if it should continue