Type Alias: CompletionOutcome
CompletionOutcome = {
kind:"delivered"; } | {error:Error;kind:"hopFailed";retryable:boolean;usage?:ModelUsage; } | {kind:"abandoned"; }
Defined in: packages/agentos/src/api/runtime/completionGateway.ts:149
How an attempt ended. A hopFailed attempt carries usage when the
provider billed it and reported the bill (a refused turn, an error chunk
with usage); the GMI adds it to the turn's usage.