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 Type
    Method
    Description
    default void
    Called after a successful handoff.
    default void
    onBefore(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx)
    Called before the handoff is executed.
    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.
  • Method Details

    • onBefore

      default void onBefore(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx)
      Called before the handoff is executed.
    • onAfter

      default void onAfter(HandoffResult result)
      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.