MCPcopy
hub / github.com/ModelEngine-Group/nexent / _build_forward_error

Function _build_forward_error

backend/data_process/tasks.py:364–376  ·  view source on GitHub ↗
(
    message: str,
    index_name: str,
    source: Optional[str],
    original_filename: Optional[str],
)

Source from the content-addressed store, hash-verified

362
363
364def _build_forward_error(
365 message: str,
366 index_name: str,
367 source: Optional[str],
368 original_filename: Optional[str],
369) -> Exception:
370 return Exception(json.dumps({
371 "message": message,
372 "index_name": index_name,
373 "task_name": "forward",
374 "source": source,
375 "original_filename": original_filename
376 }, ensure_ascii=False))
377
378
379def _parse_json_or_none(text: str) -> Optional[Dict[str, Any]]:

Callers 1

_postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected