Skip to content

HandoffInputData

Pre-built handoff input filters for common context-management patterns.

These filters are composable: chain them with composeFilters() to apply multiple transformations in sequence.

messages: Record<string, unknown>[];

The full message history at the point of handoff.


optional reason?: string;

The reason provided by the LLM for the handoff, if any.


sourceAgentId: string;

The agent that initiated the handoff.


targetAgentId: string;

The agent that will receive the handoff.


workingMemory: Record<string, unknown>;

The workingMemory state at the point of handoff.