Yassine Mhirsi
Merge branch 'main' of https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models
f101875
| """Pydantic models and schemas for request/response validation""" | |
| # Import stance-related schemas | |
| from .stance import ( | |
| StanceRequest, | |
| StanceResponse, | |
| BatchStanceRequest, | |
| BatchStanceResponse, | |
| ) | |
| # Import label/KPA-related schemas | |
| from .label import ( | |
| PredictionRequest, | |
| PredictionResponse, | |
| BatchPredictionRequest, | |
| BatchPredictionResponse, | |
| HealthResponse as KPAHealthResponse, | |
| ) | |
| # Import health-related schemas | |
| from .health import ( | |
| HealthResponse, | |
| ) | |
| # Import generate-related schemas | |
| from .generate import ( | |
| GenerateRequest, | |
| GenerateResponse, | |
| ) | |
| # Import topic-related schemas | |
| from .topic import ( | |
| TopicRequest, | |
| TopicResponse, | |
| BatchTopicRequest, | |
| BatchTopicResponse, | |
| ) | |
| # Import MCP-related schemas | |
| from .mcp_models import ( | |
| ToolCallRequest, | |
| ToolCallResponse, | |
| ToolInfo, | |
| ToolListResponse, | |
| ResourceInfo, | |
| ResourceListResponse, | |
| DetectStanceResponse, | |
| MatchKeypointResponse, | |
| TranscribeAudioResponse, | |
| GenerateSpeechResponse, | |
| ) | |
| __all__ = [ | |
| # Stance schemas | |
| "StanceRequest", | |
| "StanceResponse", | |
| "BatchStanceRequest", | |
| "BatchStanceResponse", | |
| # Label/KPA schemas | |
| "PredictionRequest", | |
| "PredictionResponse", | |
| "BatchPredictionRequest", | |
| "BatchPredictionResponse", | |
| "KPAHealthResponse", | |
| # Health schemas | |
| "HealthResponse", | |
| # Generate schemas | |
| "GenerateRequest", | |
| "GenerateResponse", | |
| # Topic schemas | |
| "TopicRequest", | |
| "TopicResponse", | |
| "BatchTopicRequest", | |
| "BatchTopicResponse", | |
| # MCP schemas | |
| "ToolCallRequest", | |
| "ToolCallResponse", | |
| "ToolInfo", | |
| "ToolListResponse", | |
| "ResourceInfo", | |
| "ResourceListResponse", | |
| "DetectStanceResponse", | |
| "MatchKeypointResponse", | |
| "TranscribeAudioResponse", | |
| "GenerateSpeechResponse", | |
| ] | |