mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
Add functionality to future_pto_calc, remove calendar_conflict step from goal
This commit is contained in:
@@ -151,15 +151,15 @@ current_pto_tool = ToolDefinition(
|
||||
ToolArgument(
|
||||
name="email",
|
||||
type="string",
|
||||
description="name of user, used to look up current PTO",
|
||||
description="email address of user",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
future_pto_calc_tool = ToolDefinition(
|
||||
name="FuturePTOCalc",
|
||||
description="Calculate if the user will have enough PTO as of their proposed date to accommodate the request. Returns a boolean enough_pto and "
|
||||
"how many hours of PTO they will have if they take the proposed dates. ",
|
||||
description="Calculate if the user will have enough PTO as of their proposed date to accommodate the request. The proposed start and end dates should be in the future. "
|
||||
"Returns a boolean enough_pto and how many hours of PTO they will have remaining if they take the proposed dates. ",
|
||||
arguments=[
|
||||
ToolArgument(
|
||||
name="start_date",
|
||||
@@ -171,6 +171,11 @@ future_pto_calc_tool = ToolDefinition(
|
||||
type="string",
|
||||
description="End date of proposed PTO",
|
||||
),
|
||||
ToolArgument(
|
||||
name="email",
|
||||
type="string",
|
||||
description="email address of user",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -211,5 +216,10 @@ book_pto_tool = ToolDefinition(
|
||||
type="string",
|
||||
description="Email address of user, used to look up current PTO",
|
||||
),
|
||||
ToolArgument(
|
||||
name="userConfirmation",
|
||||
type="string",
|
||||
description="Indication of user's desire to book PTO",
|
||||
),
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user