import type { TurnResult } from '../types.js'; export type RetryReason = 'ttfb' | 'overload' | 'stream-incomplete'; export type RoundOutcome = { kind: 'terminated'; } | { kind: 'retry'; reason: RetryReason; } | { kind: 'overload-exhausted'; } | { kind: 'translator-errored'; } | { kind: 'streamed'; turnResult: TurnResult | null; }; export type RetryOutcome = 'continue' | 'terminated';