(prompter_name: Union[str, None])
| 24 | class Prompter: |
| 25 | @staticmethod |
| 26 | def get_prompter(prompter_name: Union[str, None]): |
| 27 | # check if prompter_name is a method and its variable |
| 28 | if not prompter_name: |
| 29 | return None |
| 30 | if hasattr(Prompter, prompter_name) and callable(getattr(Prompter, prompter_name)): |
| 31 | return getattr(Prompter, prompter_name) |
| 32 | |
| 33 | @staticmethod |
| 34 | def claude(messages: List[Dict[str, str]]): |