Reply
type Reply = | { status: "completed"; message: string; run: string; text: string;} | { status: "waiting"; message: string; run: string; interrupts: Interrupt[];} | { status: "failed" | "cancelled"; message: string; run: string; error: string | undefined;};What reply resolves to: the run's text, the interrupts it waits on, or how it ended.