mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
15 lines
289 B
Python
15 lines
289 B
Python
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,
|
|
}
|