Download core/agent/data_description.py from Johntang386/MathematicalModelingAgent: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/Johntang386/MathematicalModelingAgent/resolve/main/core/agent/data_description.py
- Command line
-
hf download hf://spaces/Johntang386/MathematicalModelingAgent/core/agent/data_description.py
-
curl -L -o data_description.py https://huggingface.co/spaces/Johntang386/MathematicalModelingAgent/resolve/main/core/agent/data_description.py
356 Bytes
| from .base_agent import BaseAgent | |
| from prompt.template import DATA_DESCRIPTION_PROMPT | |
| class DataDescription(BaseAgent): | |
| def __init__(self, llm): | |
| super().__init__(llm) | |
| def summary(self, data_description: str): | |
| prompt = DATA_DESCRIPTION_PROMPT.format(data_description=data_description) | |
| return self.llm.generate(prompt) | |