Spaces:
Running
Running
File size: 439 Bytes
bb4e28f |
1 2 3 4 5 6 7 8 9 10 11 12 |
from tools.sentiment_tool import analyze_sentiment
from llm.groq_llm import call_groq_mistral
def advise_client(user_input: str) -> str:
sentiment = analyze_sentiment(user_input)
prompt = (
f"A client asked a financial question: '{user_input}'\n"
f"Their emotional tone is: {sentiment}.\n"
f"As a financial advisor, provide a thoughtful and empathetic response."
)
return call_groq_mistral(prompt)
|