# models


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## TextSegment

Represents a text segment during the workflow before it’s committed to
the graph. This is the mutable working copy used during decomposition.

------------------------------------------------------------------------

### TextSegment

``` python

def TextSegment(
    index:int, text:str, source_id:Optional=None, source_provider_id:Optional=None, start_char:Optional=None,
    end_char:Optional=None
)->None:

```

*A text segment during workflow processing before graph commit.*

## SegmentationStepState

TypedDict for Phase 2 segmentation step state. Provides type safety for
the state structure used by the segmentation (left column) step.

------------------------------------------------------------------------

### SegmentationStepState

``` python

def SegmentationStepState(
    args:VAR_POSITIONAL, kwargs:VAR_KEYWORD
):

```

*State for Phase 2 (left column): Text Segmentation.*

## SegmentationUrls

URL bundle for Phase 2 segmentation handlers and renderers. Composes
`CardStackUrls` (from `cjm-fasthtml-card-stack` library) for
navigation/viewport operations alongside workflow-specific split, merge,
and toolbar URLs.

------------------------------------------------------------------------

### SegmentationUrls

``` python

def SegmentationUrls(
    card_stack:CardStackUrls=<factory>, split:str='', merge:str='', enter_split:str='', exit_split:str='',
    reset:str='', ai_split:str='', undo:str='', init:str=''
)->None:

```

*URL bundle for Phase 2 segmentation route handlers and renderers.*
