MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / APIResponse

Class APIResponse

core/response.py:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class APIResponse(BaseModel, Generic[T]):
13 code: int = 200
14 message: str = "ok"
15 msg: Optional[str] = None
16 detail: Optional[T] = None
17
18 def model_post_init(self, __context) -> None:
19 if self.msg is None:
20 self.msg = self.message

Callers 15

setup_submitFunction · 0.90
get_configFunction · 0.90
get_public_configFunction · 0.90
health_checkFunction · 0.90
get_file_responseMethod · 0.90
share_textFunction · 0.90
share_fileFunction · 0.90
get_file_metadataFunction · 0.90
post_file_metadataFunction · 0.90
get_code_fileFunction · 0.90
select_fileFunction · 0.90
download_fileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected