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:
17
tools/future_pto.py
Normal file
17
tools/future_pto.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def future_pto(args: dict) -> dict:
|
||||
|
||||
start_date = args.get("start_date")
|
||||
end_date = args.get("end_date")
|
||||
|
||||
# get rate of accrual - need email?
|
||||
# get total hrs of PTO available as of start date (accrual * time between today and start date)
|
||||
# take into account other booked PTO??
|
||||
# calculate number of business hours of PTO: between start date and end date
|
||||
|
||||
# enough_pto = total PTO as of start date - num biz hours of PTO > 0
|
||||
# pto_hrs_remaining_after = total PTO as of start date - num biz hours of PTO
|
||||
|
||||
return {
|
||||
"enough_pto": True,
|
||||
"pto_hrs_remaining_after": 410,
|
||||
}
|
||||
Reference in New Issue
Block a user