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

Method get

python/copilot/generated/rpc.py:25693–25695  ·  view source on GitHub ↗

Gets the current agent interaction mode.\n\nReturns:\n The session mode the agent is operating in

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

Source from the content-addressed store, hash-verified

25691 self._session_id = session_id
25692
25693 async def get(self, *, timeout: float | None = None) -> SessionMode:
25694 "Gets the current agent interaction mode.\n\nReturns:\n The session mode the agent is operating in"
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."

Calls 3

_timeout_kwargsFunction · 0.85
SessionModeClass · 0.70
requestMethod · 0.45