Package com.tnsai.coordination.handoff
Class DefaultHandoff
java.lang.Object
com.tnsai.coordination.handoff.DefaultHandoff
- All Implemented Interfaces:
Handoff
Default handoff implementation that transfers a task from one agent to another
via
AgentMessage and invokes the receiving agent's chat method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(HandoffListener listener) handoff(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx) Hands off a task from one agent to another.voidremoveListener(HandoffListener listener)
-
Constructor Details
-
DefaultHandoff
public DefaultHandoff()
-
-
Method Details
-
addListener
-
removeListener
-
handoff
public HandoffResult handoff(com.tnsai.agents.Agent from, com.tnsai.agents.Agent to, HandoffContext ctx) Description copied from interface:HandoffHands off a task from one agent to another. The receiver gets only what is inctx— none offrom's message history, scratchpad, or decision trace travels along.
-