MCPcopy
hub / github.com/openai/evals / __call__

Method __call__

evals/elsuite/bugged_tools/tools.py:268–275  ·  view source on GitHub ↗
(self, tool_task_state: ToolTaskState)

Source from the content-addressed store, hash-verified

266 _input_type = int
267
268 def __call__(self, tool_task_state: ToolTaskState) -> ToolResult:
269 n = tool_task_state.messages[-1].content
270 n = try_cast_from_str(n, int)
271 if n is None:
272 return None
273
274 seq = int("".join(sorted(str(n))))
275 return ToolResult(seq)
276
277
278class PrimeSummation(Tool):

Callers

nothing calls this directly

Calls 2

try_cast_from_strFunction · 0.90
ToolResultClass · 0.85

Tested by

no test coverage detected