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

Method escape

AgentBench.old/src/tasks/dbbench/__init__.py:137–141  ·  view source on GitHub ↗
(self, string: str, conn=None)

Source from the content-addressed store, hash-verified

135 self.processes.append((sender, ctx.Lock(), p))
136
137 def escape(self, string: str, conn=None):
138 conn = conn or self.conn
139 if type(string) is not str:
140 string = str(string)
141 return conn._cmysql.escape_string(string).decode("utf-8")
142
143 def get_data(self) -> Dataset[Dict, str]:
144 dataset = Dataset()

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected