Add pirate treasure goal and more info to documentation re: how to make goals and tools

This commit is contained in:
Laine
2025-03-17 16:01:30 -04:00
parent d20c6c53a5
commit c1b662090d
6 changed files with 179 additions and 30 deletions

View File

@@ -12,6 +12,9 @@ from .hr.current_pto import current_pto
from .hr.book_pto import book_pto
from .hr.future_pto_calc import future_pto_calc
from .give_hint import give_hint
from .guess_location import guess_location
def get_handler(tool_name: str):
if tool_name == "SearchFixtures":
@@ -38,5 +41,9 @@ def get_handler(tool_name: str):
return book_pto
if tool_name == "FuturePTOCalc":
return future_pto_calc
if tool_name == "GiveHint":
return give_hint
if tool_name == "GuessLocation":
return guess_location
raise ValueError(f"Unknown tool: {tool_name}")