Spaces:
Sleeping
Sleeping
File size: 742 Bytes
6eb7feb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import llm
import traceback
def collect_context_for_email(industry, role, tone, context, sender_details, rec_details):
try:
user_input = {
"industry": industry,
"recipient_role": rec_details["rec_name"],
"tone": tone,
"context": context,
"sender_name": sender_details["sender_name"],
"receiver_name": rec_details["rec_name"],
"receiver_designation": rec_details["rec_designation"],
"receiver_company_name": rec_details["rec_company_name"]
}
llm_output = llm.chat_with_groq(user_input)
return llm_output
except Exception as err:
traceback.print_exc()
print(err)
|