career_chatbots / tools /implementations.py
liuyuelintop's picture
Upload folder using huggingface_hub
8e7f687 verified
# Tool implementations extracted from app.py
def record_user_details(email, name="Name not provided", notes="not provided", pushover_service=None):
"""Record that a user shared their email to get in touch."""
# Contact info is valuable -> notify
if pushover_service:
pushover_service.send(f"Contact: {name} | {email} | {notes}")
return {"recorded": "ok"}
def record_resume_gap(question, why_missing="not specified", mode="career", pushover_service=None):
"""Record when a question cannot be answered from the documents."""
# Only career gaps notify
if mode == "career" and pushover_service:
pushover_service.send(f"Gap[career]: {question} | reason: {why_missing}")
return {"recorded": "ok"}