MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / get_file_response

Method get_file_response

core/storage.py:53–60  ·  view source on GitHub ↗

获取文件响应 如果服务不支持直接访问文件,则需要实现该方法,返回文件响应 其余情况,可以不实现该方法

(self, file_code: FileCodes)

Source from the content-addressed store, hash-verified

51 raise NotImplementedError
52
53 async def get_file_response(self, file_code: FileCodes):
54 """
55 获取文件响应
56
57 如果服务不支持直接访问文件,则需要实现该方法,返回文件响应
58 其余情况,可以不实现该方法
59 """
60 raise NotImplementedError
61
62 async def save_chunk(self, upload_id: str, chunk_index: int, chunk_data: bytes, chunk_hash: str, save_path: str):
63 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected