stubs for intro replies
Browse files- introduck/inference.py +29 -2
introduck/inference.py
CHANGED
@@ -21,11 +21,38 @@ def extract_contacts_from_email(payload: str) -> list[list[str]]:
|
|
21 |
|
22 |
|
23 |
def generate_acceptance_reply(payload: str) -> str:
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
def generate_rejection_reply(payload: str) -> str:
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
|
31 |
def highlight_named_entities(payload: str, labels: list[str] = None) -> dict:
|
|
|
21 |
|
22 |
|
23 |
def generate_acceptance_reply(payload: str) -> str:
|
24 |
+
if not payload:
|
25 |
+
return ""
|
26 |
+
|
27 |
+
msg: str = """\
|
28 |
+
Hi,
|
29 |
+
|
30 |
+
Thanks for reaching out! I will be glad to make an intro to {PERSON or COMPANY}!
|
31 |
+
|
32 |
+
Looking forward to talking to you,
|
33 |
+
{SIGNATURE}
|
34 |
+
"""
|
35 |
+
|
36 |
+
return msg
|
37 |
|
38 |
|
39 |
def generate_rejection_reply(payload: str) -> str:
|
40 |
+
if not payload:
|
41 |
+
return ""
|
42 |
+
|
43 |
+
msg: str = """\
|
44 |
+
Hi,
|
45 |
+
|
46 |
+
Thanks for reaching out!
|
47 |
+
|
48 |
+
I'm not able to make an intro at this time,
|
49 |
+
but I'll keep your company in mind for the future.
|
50 |
+
|
51 |
+
Thanks again,
|
52 |
+
{SIGNATURE}
|
53 |
+
"""
|
54 |
+
|
55 |
+
return msg
|
56 |
|
57 |
|
58 |
def highlight_named_entities(payload: str, labels: list[str] = None) -> dict:
|