mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
Add in bare bones yet functional HR goal: goal_hr_schedule_pto
This commit is contained in:
14
tools/current_pto.py
Normal file
14
tools/current_pto.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def current_pto(args: dict) -> dict:
|
||||
|
||||
email = args.get("email")
|
||||
if email == "bob.johnson@emailzzz.com":
|
||||
num_hours = 40
|
||||
else:
|
||||
num_hours = 20
|
||||
|
||||
num_days = float(num_hours/8)
|
||||
|
||||
return {
|
||||
"num_hours": num_hours,
|
||||
"num_days": num_days,
|
||||
}
|
||||
Reference in New Issue
Block a user