Interface HandoffContext

Context for task handoff between agents.

interface HandoffContext {
    taskId: string;
    taskDescription: string;
    progress: number;
    completedWork: string[];
    remainingWork: string[];
    context: Record<string, unknown>;
    reason: "escalation" | "timeout" | "completion" | "specialization" | "capacity";
    instructions?: string;
    deadline?: Date;
}

Properties

taskId: string

Task being handed off

taskDescription: string

Task description

progress: number

Current progress (0-1)

completedWork: string[]

Work completed so far

remainingWork: string[]

Remaining work items

context: Record<string, unknown>

Relevant context/data

reason: "escalation" | "timeout" | "completion" | "specialization" | "capacity"

Reason for handoff

instructions?: string

Instructions for receiving agent

deadline?: Date

Deadline if any