13 lines
No EOL
401 B
Python
13 lines
No EOL
401 B
Python
from cognee.exceptions import (
|
|
CogneeValidationError,
|
|
CogneeConfigurationError,
|
|
)
|
|
from fastapi import status
|
|
|
|
|
|
class InvalidSummaryInputsError(CogneeValidationError):
|
|
def __init__(self, detail: str):
|
|
super().__init__(
|
|
message=f"Invalid summarize_text inputs: {detail}",
|
|
name="InvalidSummaryInputsError",
|
|
status_code=status.HTTP_400_BAD_REQUEST) |