MCPcopy Create free account
hub / github.com/deepclause/agentvm / stop

Method stop

example/vercel_agent.py:59–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 raise RuntimeError(f"VM Error: {resp.get('error')}")
58
59 def stop(self):
60 if self.process:
61 try:
62 self.process.stdin.write(json.dumps({"cmd": "stop"}) + "\n")
63 self.process.stdin.flush()
64 self.process.wait(timeout=2)
65 except:
66 self.process.kill()
67 self.process = None
68
69def run_agent():
70 vm = AgentVMClient()

Callers 1

run_agentFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected