EscalationRequest
The handoff package built when a conversation escalates to a human: everything the receiving agent needs to take over without re-asking.
Properties
Section titled “Properties”agentId
Section titled “agentId”agentId: string;at: string;ISO8601 timestamp.
category?
Section titled “category?”optional category?: EscalationReason;Typed category when the trigger provided one.
reason
Section titled “reason”reason: string;Free-form reason from the triggering control (tool call, validator, flow transition).
recentMessages
Section titled “recentMessages”recentMessages: object[];Recent conversation tail as a text projection, oldest first.
| Name | Type |
|---|---|
|
|
|
|
|
|
sessionId
Section titled “sessionId”sessionId: string;state: Record<string, unknown>;Collected flow state snapshot (internal __-prefixed keys excluded).
summary?
Section titled “summary?”optional summary?: string;LLM-generated handoff brief (when summarization is enabled and a model is available).
userId?
Section titled “userId?”optional userId?: string;