CoolFace
Apppublic

lenox-ai/prototype

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
mailing_utils.py13 linesDownload Raw Back to src
1import urllib.parse2 3 4def construct_url(address: str, subject: str, body: str): 5    return f"mailto:{address}?subject={subject}&body={body}"6 7def update_email_content(email_wrapping_content: str, summary: str) -> str:8    if "<TEXT_FROM_LLM>" in email_wrapping_content:9        email_content = email_wrapping_content.replace("<TEXT_FROM_LLM>", summary)10    else:11        email_content = email_wrapping_content + "\n\n" + summary12   13    return email_content