Skip to content
providerkit
GitHub

HandoffSpec

Defined in: agents/src/handoff.ts:26

Type Parameter Default type
T unknown
description: string;

Defined in: agents/src/handoff.ts:28


optional history?:
| "conversation"
| "full"
| ((context) => readonly AgentMessage[]);

Defined in: agents/src/handoff.ts:34

Full history is trusted server data and may contain provider-private fields. A custom filter must be pure: it runs before the first child checkpoint, never for a saved child.


name: string;

Defined in: agents/src/handoff.ts:27


to:
| Agent<T>
| (() => Agent<T>);

Defined in: agents/src/handoff.ts:31

A lazy reference permits cycles. It resolves once per descriptor, not once per call. After a restart, the resolved identity must match the saved handoff.