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

Method set

python/copilot/generated/rpc.py:25697–25701  ·  view source on GitHub ↗

Sets the current agent interaction mode.\n\nArgs:\n params: Agent interaction mode to apply to the session.

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

Source from the content-addressed store, hash-verified

25695 return SessionMode(await self._client.request("session.mode.get", {"sessionId": self._session_id}, **_timeout_kwargs(timeout)))
25696
25697 async def set(self, params: ModeSetRequest, *, timeout: float | None = None) -> None:
25698 "Sets the current agent interaction mode.\n\nArgs:\n params: Agent interaction mode to apply to the session."
25699 params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None}
25700 params_dict["sessionId"] = self._session_id
25701 await self._client.request("session.mode.set", params_dict, **_timeout_kwargs(timeout))
25702
25703
25704# Experimental: this API group is experimental and may change or be removed.

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45