MessageDelivery

Identifies a message's response generation and whether it is streaming or finished with an outcome.

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

Declaration

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