Spaces:
Sleeping
Sleeping
Download python-services/Retrieve/bio_requests/chat_request.py from jackkuo/streamlit-macp-agents: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/jackkuo/streamlit-macp-agents/resolve/main/python-services/Retrieve/bio_requests/chat_request.py
- Command line
-
hf download hf://spaces/jackkuo/streamlit-macp-agents/python-services/Retrieve/bio_requests/chat_request.py
-
curl -L -o chat_request.py https://huggingface.co/spaces/jackkuo/streamlit-macp-agents/resolve/main/python-services/Retrieve/bio_requests/chat_request.py
481 Bytes
| from pydantic import BaseModel, Field | |
| class ChatRequest(BaseModel): | |
| query: str = Field(default="", description="Search query") | |
| is_web: bool = Field( | |
| default=False, description="Whether to use web search, default is False" | |
| ) | |
| is_pubmed: bool = Field( | |
| default=True, description="Whether to use pubmed search, default is True" | |
| ) | |
| language: str = Field( | |
| default="en", description="Response language (zh/en), default is English" | |
| ) | |