Spaces:
Sleeping
Sleeping
Download chatbot/chatbot_agent.py from Tahasaif3/DigitalIslamicChatbotAPI: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/Tahasaif3/DigitalIslamicChatbotAPI/resolve/main/chatbot/chatbot_agent.py
- Command line
-
hf download hf://spaces/Tahasaif3/DigitalIslamicChatbotAPI/chatbot/chatbot_agent.py
-
curl -L -o chatbot_agent.py https://huggingface.co/spaces/Tahasaif3/DigitalIslamicChatbotAPI/resolve/main/chatbot/chatbot_agent.py
555 Bytes
| from agents import Agent | |
| from config.chabot_config import model | |
| from instructions.chatbot_instructions import islamic_therapist_dynamic_instructions | |
| from guardrails.guardrails_input_function import guardrail_input_function | |
| from tools.document_reader_tool import read_document_data, list_available_documents | |
| islamic_therapist_assistant = Agent( | |
| name="Digital Islamic Therapist", | |
| instructions=islamic_therapist_dynamic_instructions, | |
| model=model, | |
| tools=[read_document_data, list_available_documents], # Document reading tools (if needed) | |
| ) | |