class AdmissionAgent:
def reply(self):
return (
" Admission Agent\n"
"Admission Process:\n"
"1. Fill online application.\n"
"2. Upload documents.\n"
"3. Pay registration fee.\n"
"4. Wait for confirmation."
"Contact Information:",
" - Admission Office Helpline: +91-987654xxxx",
" - Email: admissions@college.edu",
"Facilities for New Students:",
" - Orientation program in August",
" - Hostel allotment after admission confirmation",
" - Student ID card issued within 7 days"
"Eligibility Criteria:",
" - Minimum 50% marks in 12th (PCM for engineering courses)",
" - Reservation rules as per government norms (SC/ST/OBC/EWS)",
"Admission Process:",
" - Online application form submission",
" - Entrance exam / merit list",
" - Counseling and seat allotment",
"Important Dates:",
" - Application Start: June 1",
" - Last Date to Apply: July 15",
" - Counseling: August",
)
class ExamAgent:
def reply(self):
return (
" Exam Agent\n"
"Semester exams start from 10 December.\n"
"Admit card will be available 5 days before the exam."
)
class FeesAgent:
def reply(self):
return (
" Fees Agent\n"
"B.Tech First Year Fees:\n"
"Tuition Fee : ₹85,000\n"
"Hostel Fee : ₹45,000\n"
"Registration: ₹5,000"
)
class ScholarshipAgent:
def reply(self):
return (
"🎓 Scholarship Agent\n"
"Available Scholarships:\n"
"- Merit Scholarship\n"
"- SC/ST Scholarship\n"
"- OBC Scholarship\n"
)
class IntentClassifier:
def detect(self, text):
text = text.lower()
if "admission" in text:
return "admission"
elif "exam" in text:
return "exam"
elif "fee" in text or "fees" in text:
return "fees"
elif "scholarship" in text:
return "scholarship"
elif text in ["bye", "exit", "quit"]:
return "exit"
else:
return "unknown"
class ResponseAgent:
def respond(self, intent):
if intent == "admission":
return AdmissionAgent().reply()
elif intent == "exam":
return ExamAgent().reply()
elif intent == "fees":
return FeesAgent().reply()
elif intent == "scholarship":
return ScholarshipAgent().reply()
elif intent == "exit":
return " Thank you! Have a nice day."
else:
return (" Sorry! I can help only with:\n"
"- Admission\n"
"- Exam\n"
"- Fees\n"
"- Scholarship")
print("=" * 45)
print(" UNIVERSITY AI MULTI-AGENT SYSTEM")
print("=" * 45)
print("\nHello! Welcome.")
print("Ask about Admission, Exam, Fees or Scholarship.")
print("Type 'bye' to exit.\n")
classifier = IntentClassifier()
response = ResponseAgent()
while True:
user = input("You : ")
intent = classifier.detect(user)
print("\nBot :")
print(response.respond(intent))
print()
if intent == "exit":
break