wp-includes/php-ai-client/src/Results/Enums/FinishReasonEnum.php:23Enum for finish reasons of AI generation.
class FinishReasonEnum extends AbstractEnum{ /** * Generation stopped naturally. */ public const STOP = 'stop'; /** * Generation stopped due to max length. */ public const LENGTH = 'length'; /** * Generation stopped due to content filter. */ public const CONTENT_FILTER = 'content_filter'; /** * Generation stopped to make tool calls. */ public const TOOL_CALLS = 'tool_calls'; /** * Generation stopped due to error. */ public const ERROR = 'error';}Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Results/Enums/FinishReasonEnum.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.