Skip to content

Base dpo router

Defines an abstract base class for routing in document processing.

This module provides a base router class that can be extended to implement specific routing logic for document processing workflows.

Authors

Hubert Michael Sanyoto (hubert.m.sanyoto@gdplabs.id)

BaseDPORouter

Bases: ABC

Base class for routing in document processing.

route(*args, **kwargs) abstractmethod

Routes the input into different processing pipelines based on certain criteria.

Parameters:

Name Type Description Default
*args Any

Variable length argument list for routing parameters.

()
**kwargs Any

Arbitrary keyword arguments for additional routing configuration.

{}

Returns:

Name Type Description
Any Any

The result of the routing process.