@threadplane/chatTypeAliasv0.3.4

MessageDelivery

Delivery lifecycle for one response attempt. generation identifies that attempt and is stable only for its lifetime. streaming means chunks may still arrive; complete means the attempt has stopped with a terminal outcome.

import type { MessageDelivery } from '@threadplane/chat';

Declaration

export type MessageDelivery = {
    readonly generation: string;
    readonly phase: 'streaming';
} | {
    readonly generation: string;
    readonly phase: 'complete';
    readonly outcome: CompleteOutcome;
};