MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / put

Method put

src/opencode_ai/_base_client.py:1775–1787  ·  view source on GitHub ↗
(
        self,
        path: str,
        *,
        cast_to: Type[ResponseT],
        body: Body | None = None,
        files: RequestFiles | None = None,
        options: RequestOptions = {},
    )

Source from the content-addressed store, hash-verified

1773 return await self.request(cast_to, opts)
1774
1775 async def put(
1776 self,
1777 path: str,
1778 *,
1779 cast_to: Type[ResponseT],
1780 body: Body | None = None,
1781 files: RequestFiles | None = None,
1782 options: RequestOptions = {},
1783 ) -> ResponseT:
1784 opts = FinalRequestOptions.construct(
1785 method="put", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1786 )
1787 return await self.request(cast_to, opts)
1788
1789 async def delete(
1790 self,

Callers

nothing calls this directly

Calls 3

requestMethod · 0.95
async_to_httpx_filesFunction · 0.85
constructMethod · 0.45

Tested by

no test coverage detected