Merge branch 'main' into feat/custom-model&tool-order

This commit is contained in:
GareArc 2024-08-15 12:34:57 -04:00
commit 68bd78701f

View File

@ -9,7 +9,7 @@ from core.tools.utils.yaml_utils import load_yaml_file
def get_position_map(folder_path: str, *, file_name: str = "_position.yaml") -> dict[str, int]: def get_position_map(folder_path: str, *, file_name: str = "_position.yaml") -> dict[str, int]:
""" """
Get the mapping from name to index from a YAML file. Get the mapping from name to index from a YAML file
:param folder_path: :param folder_path:
:param file_name: the YAML file name, default to '_position.yaml' :param file_name: the YAML file name, default to '_position.yaml'
:return: a dict with name as key and index as value :return: a dict with name as key and index as value