(self, tool_task_state: ToolTaskState)
| 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 | |
| 278 | class PrimeSummation(Tool): |
nothing calls this directly
no test coverage detected