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

Function async_read_file_content

src/opencode_ai/_files.py:119–123  ·  view source on GitHub ↗
(file: FileContent)

Source from the content-addressed store, hash-verified

117
118
119async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120 if isinstance(file, os.PathLike):
121 return await anyio.Path(file).read_bytes()
122
123 return file

Callers 1

_async_transform_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected