Spaces:
Paused
Paused
Download chatbot/chatbot_agent.py from MuhammadSaad16/mohsin: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/MuhammadSaad16/mohsin/resolve/main/chatbot/chatbot_agent.py
- Command line
-
hf download hf://spaces/MuhammadSaad16/mohsin/chatbot/chatbot_agent.py
-
curl -L -o chatbot_agent.py https://huggingface.co/spaces/MuhammadSaad16/mohsin/resolve/main/chatbot/chatbot_agent.py
557 Bytes
| from agents import Agent | |
| from config.chabot_config import model | |
| from instructions.chatbot_instructions import jobobike_dynamic_instructions | |
| from guardrails.guardrails_input_function import guardrail_input_function | |
| from tools.document_reader_tool import read_document_data, list_available_documents | |
| jobobike_assistant = Agent( | |
| name="JOBObike Assistant", | |
| instructions=jobobike_dynamic_instructions, | |
| model=model, | |
| input_guardrails=[guardrail_input_function], | |
| tools=[read_document_data, list_available_documents], # Document reading tools | |
| ) |