Class DefaultHandoff

java.lang.Object
com.tnsai.coordination.handoff.DefaultHandoff
All Implemented Interfaces:
Handoff

public class DefaultHandoff extends Object implements Handoff
Default handoff implementation that transfers a task from one agent to another via AgentMessage and invokes the receiving agent's chat method.
  • Constructor Details

    • DefaultHandoff

      public DefaultHandoff()
  • Method Details

    • addListener

      public void addListener(HandoffListener listener)
    • removeListener

      public void removeListener(HandoffListener listener)
    • handoff

      public HandoffResult handoff(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx)
      Description copied from interface: Handoff
      Hands off a task from one agent to another. The receiver gets only what is in ctx — none of from's message history, scratchpad, or decision trace travels along.
      Specified by:
      handoff in interface Handoff
      Parameters:
      from - the source agent
      to - the target agent
      ctx - the handoff context containing task details
      Returns:
      the result of the handoff