Package com.embabel.agent.core
Interface EarlyTerminationPolicy
-
- All Implemented Interfaces:
public interface EarlyTerminationPolicyEnables 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEarlyTerminationPolicy.Companion
-
Method Summary
Modifier and Type Method Description abstract EarlyTerminationshouldTerminate(AgentProcess agentProcess)Checks if the agent process should be terminated early. StringgetName()-
-
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
-
-
-
-