MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _is_direct_upload_request

Function _is_direct_upload_request

agents/reading-agent/main.py:1229–1231  ·  view source on GitHub ↗
(request_metadata: Dict[str, Any])

Source from the content-addressed store, hash-verified

1227
1228def _is_direct_upload_request(request_metadata: Dict[str, Any]) -> bool:
1229 source_type = _clean_text((request_metadata or {}).get("report_source_type"))
1230 return source_type in {"feishu_file_key", "feishu_file_url", "feishu_message_id", "text_pdf_url"}
1231
1232
1233def _load_public_webhook_base_url() -> str:
1234 data_dir = Path(__file__).resolve().parents[2] / "data"

Callers 1

Calls 2

getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected