//#region ../ai/src/contracts/finish-reason.type.d.ts /** * Reasons the LLM stopped generating. Shared across model responses, * streaming chunks, and LLM trip records. * * @example * const reason: FinishReason = "stop"; * * @example * if (response.finishReason === "tool_calls") { * // Execute requested tools and continue the trip loop * } */ type FinishReason = "stop" | "tool_calls" | "length" | "error"; //#endregion export { FinishReason }; //# sourceMappingURL=finish-reason.type.d.mts.map