commit

Route handler for committing the document to the context graph

Commit Result

Data structure for commit operation results.


CommitResult


def CommitResult(
    success:bool, document_id:Optional=None, segment_count:int=0, edge_count:int=0, error:Optional=None
)->None:

Result of a commit operation.

Alert Rendering

Renders success/error alerts with auto-dismiss functionality.

Commit Handler

Core handler that performs the commit operation.

Router Initialization

Creates commit route and returns the router with route function.


init_commit_router


def init_commit_router(
    state_store:SQLiteWorkflowStateStore, # The workflow state store
    workflow_id:str, # The workflow identifier
    prefix:str, # Base prefix for commit route
    graph_service:GraphService, # Graph service for committing
    urls:ReviewUrls, # URL bundle to populate
    alert_container_id:str='commit-alert-container', # ID of container for alert OOB swap
)->Tuple: # (router, routes dict)

Initialize commit route.