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)
| 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. |