Download src/dynamic_tool_agent/tools.py from hibanail/langgraph-demo: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/hibanail/langgraph-demo/resolve/main/src/dynamic_tool_agent/tools.py
- Command line
-
hf download hf://hibanail/langgraph-demo/src/dynamic_tool_agent/tools.py
-
curl -L -o tools.py https://huggingface.co/hibanail/langgraph-demo/resolve/main/src/dynamic_tool_agent/tools.py
593 Bytes
| def book_table( | |
| restaurant: str, | |
| people: int, | |
| date: str, | |
| time: str | |
| ) -> dict: | |
| return { | |
| "status": "simulated", | |
| "message": ( | |
| f"Table request prepared for {people} people " | |
| f"at {restaurant} on {date} at {time}." | |
| ) | |
| } | |
| def check_menu( | |
| restaurant: str, | |
| dish: str | |
| ) -> dict: | |
| return { | |
| "status": "simulated", | |
| "message": ( | |
| f"Menu lookup prepared for {dish} " | |
| f"at {restaurant}." | |
| ) | |
| } | |
| TOOL_REGISTRY = { | |
| "book_table": book_table, | |
| "check_menu": check_menu | |
| } | |