Spaces:
Running
Running
File size: 740 Bytes
8e7f687 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# 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"} |