Download tests/test_agent_params.py from DiabetesCareChatbot/dmChatbotBackend: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/DiabetesCareChatbot/dmChatbotBackend/resolve/main/tests/test_agent_params.py
- Command line
-
hf download hf://spaces/DiabetesCareChatbot/dmChatbotBackend/tests/test_agent_params.py
-
curl -L -o test_agent_params.py https://huggingface.co/spaces/DiabetesCareChatbot/dmChatbotBackend/resolve/main/tests/test_agent_params.py
428 Bytes
| import unittest | |
| from src.agent_params import get_agent_params | |
| class TestAgentParams(unittest.TestCase): | |
| def test_known_agent_temperature_is_loaded(self): | |
| params = get_agent_params("PatientLLM") | |
| self.assertEqual(params["temperature"], 0.2) | |
| def test_unknown_agent_returns_empty_dict(self): | |
| self.assertEqual(get_agent_params("UnknownAgent"), {}) | |
| if __name__ == "__main__": | |
| unittest.main() | |