MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / get_prompter

Method get_prompter

AgentBench.old/src/agents/tgi_client.py:26–31  ·  view source on GitHub ↗
(prompter_name: Union[str, None])

Source from the content-addressed store, hash-verified

24class 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]]):

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected