LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
from rest_framework.exceptions import APIException
class WorkflowGenerationError(APIException):
status_code = 500
default_detail = "Error generating workflow."
class WorkflowRegenerationError(APIException):
status_code = 500
default_detail = "Error regenerating workflow."
class WorkflowExecutionError(APIException):
status_code = 500
default_detail = "Error executing workflow."
class WorkflowDoesNotExistError(APIException):
status_code = 404
default_detail = "Workflow does not exist"
class ExecutionDoesNotExistError(APIException):
status_code = 404
default_detail = "Execution does not exist."
class DuplicateActionError(APIException):
status_code = 400
default_detail = "Action is running"
class InvalidRequest(APIException):
status_code = 400
default_detail = "Invalid Request"
class InternalException(APIException):
"""Internal Error.
Args:
APIException (_type_): _description_
"""
status_code = 500
class WorkflowExecutionNotExist(APIException):
status_code = 404
default_detail = "Workflow execution does not exist"
class ExecutionContextInitializationError(APIException):
default_detail = "Error initializing execution context."