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
TOutcomeCompleteOutcome
Parameters
generation· requiredstringoutcome· requiredTOutcome
Returns
{
readonly generation: string;
readonly phase: "complete";
readonly outcome: TOutcome;
}