@threadplane/chatFunctionv0.3.4

completeDelivery

Creates a terminal delivery state for an existing response-attempt generation.

import { completeDelivery } from '@threadplane/chat';

Declaration · overload 1

export declare function completeDelivery<const TOutcome extends CompleteOutcome>(generation: string, outcome: TOutcome): {
    readonly generation: string;
    readonly phase: "complete";
    readonly outcome: TOutcome;
};

Type parameters

Parameters

generation · required
string
outcome · required
TOutcome

Returns

{ readonly generation: string; readonly phase: "complete"; readonly outcome: TOutcome; }