@Dirk I’m facing multiple issues in latest version. Previosly my conversation flow and delegation flow were working fine, I was just facing challenges in maintaining session states during conversation at each step | tool call.
Now in latest version, everything seems broken . Even conversation flow response is not right. Please take a look at this:
class SalesToolkit(Toolkit):
name = "sales_toolkit"
instructions = """
1. `send_email_for_online_application_form_link` will update the session state to `pending_on_user`.
"""
def __init__(self):
super().__init__(name=self.name, instructions=self.instructions, add_instructions=True)
self.register(self.get_customer_data)
self.register(self.calculate_emi)
self.register(self.get_historical_credit_history)
self.register(self.get_recommendation_similar_customers)
self.register(self.send_email_for_online_application_form_link)
def calculate_emi(self, amount: int, rate: float, tenure_in_months: int) -> str:
"""
Calculate the Equated Monthly Installment (EMI) for a loan
Args:
amount (int): customer id
rate (float): rate of interest
tenure_in_months (int): number of months loan is borrowed for
Returns:
str: string containing monthly EMI information for given amount, rate and tenure.
"""
rate_per_month = rate / 12 / 100
emi = (amount * rate_per_month * (1 + rate_per_month) ** tenure_in_months) / ((1 + rate_per_month) ** tenure_in_months - 1)
return f"EMI for ₹{amount} at {rate}% for {tenure_in_months} months is approximately ₹{round(emi)}."
I’ve calculate_emi
tool call registered under tool kit, but still sales-agent cannot find it.
@Dirk @Monali @kausmos @ayush @monalisha Something is not right after v1.2.15.