@threadplane/coreTypeAliasv0.0.0

MessageDelivery

Unpublished development API. This package is under development and is not available as a published release.

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

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

Declaration

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