# This file was auto-generated by Fern from our API Definition.

import typing_extensions
from ..core.serialization import FieldMetadata


class ClassificationNextEntryParams(typing_extensions.TypedDict):
    """
    A next entry for `CLASSIFY` and `SPLIT` steps. Routes based on the classification result.

    See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for end-to-end examples.
    """

    step: str
    """
    The name of the target step.
    """

    classification_id: typing_extensions.Annotated[str, FieldMetadata(alias="classificationId")]
    """
    Must match a classification `id` from the referenced classifier's or splitter's configuration (e.g. `"cls_invoice"`). Classification IDs are stable across renames — if a classification type is renamed, the ID stays the same and routing continues to work.
    """
