Download mcp/schemas.py from mgbam/MCP_Res: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/spaces/mgbam/MCP_Res/resolve/8e8bfa64459c58f44ea635139b38e6b394629682/mcp/schemas.py
- Command line
-
hf download hf://spaces/mgbam/MCP_Res@8e8bfa64459c58f44ea635139b38e6b394629682/mcp/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/mgbam/MCP_Res/resolve/8e8bfa64459c58f44ea635139b38e6b394629682/mcp/schemas.py
718 Bytes
| # mcp/schemas.py | |
| from pydantic import BaseModel | |
| from typing import List, Optional | |
| class Paper(BaseModel): | |
| title: str | |
| authors: str | |
| summary: str | |
| link: str | |
| published: str | |
| source: str | |
| class UMLSConcept(BaseModel): | |
| term: str | |
| cui: Optional[str] | |
| name: Optional[str] | |
| definition: Optional[str] | |
| class DrugSafety(BaseModel): | |
| safety_report_id: Optional[str] | |
| serious: Optional[str] | |
| reactions: Optional[List[str]] | |
| receivedate: Optional[str] | |
| class UnifiedSearchResult(BaseModel): | |
| papers: List[Paper] | |
| umls: List[UMLSConcept] | |
| drug_safety: List[DrugSafety] | |
| ai_summary: str | |
| suggested_reading: List[str] | |
| class UnifiedSearchInput(BaseModel): | |
| query: str | |