Skip to content
providerkit
GitHub

SalvageReason

type SalvageReason = "turns" | "toolCalls" | "costUsd" | "outputTokens" | "missing_result";

Defined in: agents/src/types.ts:93

What would have ended the run when its finish turn saved it: a limit it reached, a turn the output limit cut, or a checked-output answer written as text.