You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/backend/kernel_tools/hr_tools.py
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,26 +5,25 @@
5
5
frommodels.messages_kernelimportAgentType
6
6
importjson
7
7
fromtypingimportget_type_hints
8
-
fromutils_dateimportformat_date_for_user
8
+
fromapp_configimportconfig
9
9
10
10
11
11
classHrTools:
12
12
# Define HR tools (functions)
13
-
formatting_instructions="Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."
formatting_instructions="Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did. Convert all date strings in the following text to short date format with 3-letter month (MMM) in the {selecetd_language} locale (e.g., en-US, en-IN), remove time, and replace original dates with the formatted ones"
14
15
agent_name=AgentType.HR.value
15
16
16
17
@staticmethod
17
18
@kernel_function(description="Schedule an orientation session for a new employee.")
description="Add an extras pack/new product to the mobile plan for the customer. For example, adding a roaming plan to their service."
24
+
description="Add an extras pack/new product to the mobile plan for the customer. For example, adding a roaming plan to their service. Convert all date strings in the following text to short date format with 3-letter month (MMM) in the {selecetd_language} locale (e.g., en-US, en-IN), remove time, and replace original dates with the formatted ones"
"""Add an extras pack/new product to the mobile plan for the customer. For example, adding a roaming plan to their service. The arguments should include the new_extras_pack_name and the start_date as strings. You must provide the exact plan name, as found using the get_product_info() function."""
26
28
formatting_instructions="Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."
27
-
formatted_date=format_date_for_user(start_date)
28
29
analysis= (
29
30
f"# Request to Add Extras Pack to Mobile Plan\n"
30
31
f"## New Plan:\n{new_extras_pack_name}\n"
31
-
f"## Start Date:\n{formatted_date}\n\n"
32
+
f"## Start Date:\n{start_date}\n\n"
32
33
f"These changes have been completed and should be reflected in your app in 5-10 minutes."
0 commit comments