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

Method get_current

python/copilot/generated/rpc.py:25664–25666  ·  view source on GitHub ↗

Gets the currently selected model for the session.\n\nReturns:\n The currently selected model, reasoning effort, and context tier for the session. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume.

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

Source from the content-addressed store, hash-verified

25662 self._session_id = session_id
25663
25664 async def get_current(self, *, timeout: float | None = None) -> CurrentModel:
25665 "Gets the currently selected model for the session.\n\nReturns:\n The currently selected model, reasoning effort, and context tier for the session. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume."
25666 return CurrentModel.from_dict(await self._client.request("session.model.getCurrent", {"sessionId": self._session_id}, **_timeout_kwargs(timeout)))
25667
25668 async def switch_to(self, params: ModelSwitchToRequest, *, timeout: float | None = None) -> ModelSwitchToResult:
25669 "Switches the session to a model and optional reasoning configuration.\n\nArgs:\n params: Target model identifier and optional reasoning effort, summary, capability overrides, and context tier.\n\nReturns:\n The model identifier active on the session after the switch."

Calls 3

_timeout_kwargsFunction · 0.85
from_dictMethod · 0.45
requestMethod · 0.45