MCPcopy Index your code
hub / github.com/github/copilot-sdk / kill

Method kill

python/copilot/generated/rpc.py:26575–26579  ·  view source on GitHub ↗

Sends a signal to a shell process previously started via \"shell.exec\".\n\nArgs:\n params: Identifier of a process previously returned by \"shell.exec\" and the signal to send.\n\nReturns:\n Indicates whether the signal was delivered; false if the process was unknown or already exited.

(self, params: ShellKillRequest, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

26573 return ShellExecResult.from_dict(await self._client.request("session.shell.exec", params_dict, **_timeout_kwargs(timeout)))
26574
26575 async def kill(self, params: ShellKillRequest, *, timeout: float | None = None) -> ShellKillResult:
26576 "Sends a signal to a shell process previously started via \"shell.exec\".\n\nArgs:\n params: Identifier of a process previously returned by \"shell.exec\" and the signal to send.\n\nReturns:\n Indicates whether the signal was delivered; false if the process was unknown or already exited."
26577 params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None}
26578 params_dict["sessionId"] = self._session_id
26579 return ShellKillResult.from_dict(await self._client.request("session.shell.kill", params_dict, **_timeout_kwargs(timeout)))
26580
26581 async def execute_user_requested(self, params: ShellExecuteUserRequestedRequest, *, timeout: float | None = None) -> UserRequestedShellCommandResult:
26582 "Executes a user-requested shell command through the session runtime.\n\nArgs:\n params: User-requested shell command and cancellation handle.\n\nReturns:\n Result of a user-requested shell command."

Callers 10

_stop_processFunction · 0.45
startMethod · 0.45
client.test.tsFile · 0.45
stopChildFunction · 0.45
client.e2e.test.tsFile · 0.45
stopMethod · 0.45
forceStopMethod · 0.45

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45

Tested by 4

_stop_processFunction · 0.36
stopChildFunction · 0.36