Spaces:
Running
Running
Download agents/classifier_agent.py from TANMIHA/MTOR: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/TANMIHA/MTOR/resolve/main/agents/classifier_agent.py
- Command line
-
hf download hf://spaces/TANMIHA/MTOR/agents/classifier_agent.py
-
curl -L -o classifier_agent.py https://huggingface.co/spaces/TANMIHA/MTOR/resolve/main/agents/classifier_agent.py
415 Bytes
| import os | |
| from pathlib import Path | |
| from autogen import AssistantAgent | |
| from utility.prompt import classifier_prompt | |
| from utility.llm_config import llm_config | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| def get_classifier_agent(): | |
| agent_cls = AssistantAgent( | |
| name="ClassifierAgent", | |
| llm_config=llm_config, | |
| system_message = classifier_prompt | |
| ) | |
| return agent_cls |