Download core/api_models/__init__.py from Kyrlos11/nniback: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/api_models/__init__.py
- Command line
-
hf download hf://spaces/Kyrlos11/nniback/core/api_models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Kyrlos11/nniback/resolve/main/core/api_models/__init__.py
1.35 kB
| """API Models for AgentPress | |
| This module contains all Pydantic models used for API request/response validation. | |
| Models are organized by domain for better maintainability. | |
| """ | |
| from .common import ( | |
| PaginationInfo, | |
| ) | |
| from .agents import ( | |
| AgentCreateRequest, | |
| AgentUpdateRequest, | |
| AgentResponse, | |
| AgentVersionResponse, | |
| AgentVersionCreateRequest, | |
| AgentsResponse, | |
| AgentExportData, | |
| AgentImportRequest, | |
| AgentIconGenerationRequest, | |
| AgentIconGenerationResponse, | |
| ) | |
| from .threads import ( | |
| UnifiedAgentStartResponse, | |
| CreateThreadResponse, | |
| MessageCreateRequest, | |
| ) | |
| from .imports import ( | |
| JsonAnalysisRequest, | |
| JsonAnalysisResponse, | |
| JsonImportRequestModel, | |
| JsonImportResponse, | |
| ) | |
| __all__ = [ | |
| # Agent models | |
| "AgentCreateRequest", | |
| "AgentUpdateRequest", | |
| "AgentResponse", | |
| "AgentVersionResponse", | |
| "AgentVersionCreateRequest", | |
| "AgentsResponse", | |
| "AgentExportData", | |
| "AgentImportRequest", | |
| "AgentIconGenerationRequest", | |
| "AgentIconGenerationResponse", | |
| # Thread models | |
| "UnifiedAgentStartResponse", | |
| "CreateThreadResponse", | |
| "MessageCreateRequest", | |
| # Import models | |
| "JsonAnalysisRequest", | |
| "JsonAnalysisResponse", | |
| "JsonImportRequestModel", | |
| "JsonImportResponse", | |
| # Common models | |
| "PaginationInfo", | |
| ] |