Package com.embabel.agent.core
Class EarlyTermination
-
- All Implemented Interfaces:
-
com.embabel.agent.api.event.AgentProcessEvent,com.embabel.agent.api.event.AgenticEvent,com.embabel.agent.core.InProcess,com.embabel.common.core.types.Timestamped
public final class EarlyTermination extends AbstractAgentProcessEvent
Event triggered when an agent process is terminated early by a policy.
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanerrorprivate final Stringreasonprivate final EarlyTerminationPolicypolicyprivate final Instanttimestampprivate final StringprocessIdprivate final List<ActionInvocation>historyprivate final AgentProcessStatusReportstatusprivate final AgentProcessagentProcess
-
Constructor Summary
Constructors Constructor Description EarlyTermination(AgentProcess agentProcess, Boolean error, String reason, EarlyTerminationPolicy policy)
-
Method Summary
Modifier and Type Method Description final BooleangetError()final StringgetReason()final EarlyTerminationPolicygetPolicy()StringtoString()-
Methods inherited from class com.embabel.agent.api.event.AbstractAgentProcessEvent
getAgentProcess, getHistory, getProcessId, getStatus, getTimestamp -
Methods inherited from class com.embabel.common.core.types.Timestamped
isLaterThan -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
EarlyTermination
EarlyTermination(AgentProcess agentProcess, Boolean error, String reason, EarlyTerminationPolicy policy)
- Parameters:
agentProcess- The agent process that is being terminatederror- Whether the termination is considered an errorreason- A human-readable explanation of why the process is being terminatedpolicy- The policy that triggered the termination
-
-
-
-