mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
two more HR scenarios added
This commit is contained in:
15
tools/hr/checkpaybankstatus.py
Normal file
15
tools/hr/checkpaybankstatus.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
import json
|
||||
|
||||
|
||||
def checkpaybankstatus(args: dict) -> dict:
|
||||
|
||||
email = args.get("email")
|
||||
|
||||
if email == "grinch@grinch.com":
|
||||
print("THE GRINCH IS FOUND!")
|
||||
return {"status": "no money for the grinch"}
|
||||
|
||||
# could do logic here or look up data but for now everyone but the grinch is getting paid
|
||||
return_msg = "connected"
|
||||
return {"status": return_msg}
|
||||
Reference in New Issue
Block a user