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

Function read_file_content

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

Source from the content-addressed store, hash-verified

75
76
77def read_file_content(file: FileContent) -> HttpxFileContent:
78 if isinstance(file, os.PathLike):
79 return pathlib.Path(file).read_bytes()
80 return file
81
82
83@overload

Callers 1

_transform_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected