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

Method claude

AgentBench.old/src/agents/tgi_client.py:34–43  ·  view source on GitHub ↗
(messages: List[Dict[str, str]])

Source from the content-addressed store, hash-verified

32
33 @staticmethod
34 def claude(messages: List[Dict[str, str]]):
35 prompt = ""
36 role_dict = {
37 "user": "Human",
38 "agent": "Assistant",
39 }
40 for item in messages:
41 prompt += f"{role_dict[item['role']]}: {item['content']}\n\n"
42 prompt += "Assistant:"
43 return {"prompt": prompt}
44
45 @staticmethod
46 def openchat_v3_1(messages: List[Dict[str, str]]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected