(resp)
| 128 | |
| 129 | @staticmethod |
| 130 | def tool_text(resp): |
| 131 | if "error" in resp: |
| 132 | return None, resp["error"] |
| 133 | parts = [c.get("text", "") for c in resp.get("result", {}).get("content", []) |
| 134 | if c.get("type") == "text"] |
| 135 | return "".join(parts), None |
| 136 | |
| 137 | def close(self): |
| 138 | if not self.proc: |
no outgoing calls