Gets the current agent interaction mode.\n\nReturns:\n The session mode the agent is operating in
(self, *, timeout: float | None = None)
| 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." |