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

Method update

python/copilot/generated/rpc.py:25737–25741  ·  view source on GitHub ↗

Writes new content to the session plan file.\n\nArgs:\n params: Replacement contents to write to the session plan file.

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

Source from the content-addressed store, hash-verified

25735 return PlanReadResult.from_dict(await self._client.request("session.plan.read", {"sessionId": self._session_id}, **_timeout_kwargs(timeout)))
25736
25737 async def update(self, params: PlanUpdateRequest, *, timeout: float | None = None) -> None:
25738 "Writes new content to the session plan file.\n\nArgs:\n params: Replacement contents to write to the session plan file."
25739 params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None}
25740 params_dict["sessionId"] = self._session_id
25741 await self._client.request("session.plan.update", params_dict, **_timeout_kwargs(timeout))
25742
25743 async def delete(self, *, timeout: float | None = None) -> None:
25744 "Deletes the session plan file from the workspace."

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45