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

Function is_base64_file_input

src/opencode_ai/_files.py:23–24  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

21
22
23def is_base64_file_input(obj: object) -> TypeGuard[Base64FileInput]:
24 return isinstance(obj, io.IOBase) or isinstance(obj, os.PathLike)
25
26
27def is_file_content(obj: object) -> TypeGuard[FileContent]:

Callers 2

_format_dataFunction · 0.85
_async_format_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected