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

Method set_provider

python/copilot/generated/rpc.py:25370–25373  ·  view source on GitHub ↗

Registers an SDK client as the session filesystem provider.\n\nArgs:\n params: Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider.\n\nReturns:\n Indicates whether the calling client was registere

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

Source from the content-addressed store, hash-verified

25368 self._client = client
25369
25370 async def set_provider(self, params: SessionFSSetProviderRequest, *, timeout: float | None = None) -> SessionFSSetProviderResult:
25371 "Registers an SDK client as the session filesystem provider.\n\nArgs:\n params: Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider.\n\nReturns:\n Indicates whether the calling client was registered as the session filesystem provider."
25372 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25373 return SessionFSSetProviderResult.from_dict(await self._client.request("sessionFs.setProvider", params_dict, **_timeout_kwargs(timeout)))
25374
25375
25376# Experimental: this API group is experimental and may change or be removed.

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45