Package com.tnsai.coordination.handoff
Interface HandoffListener
public interface HandoffListener
Observer for handoff lifecycle events.
All methods have default no-op implementations so listeners can override only what they need.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonAfter(HandoffResult result) Called after a successful handoff.default voidonBefore(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx) Called before the handoff is executed.default voidonFailed(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx, Exception ex) Called when a handoff fails with an exception.
-
Method Details
-
onBefore
Called before the handoff is executed. -
onAfter
Called after a successful handoff. -
onFailed
default void onFailed(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx, Exception ex) Called when a handoff fails with an exception.
-