MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / _submit_response

Function _submit_response

main.py:39–53  ·  view source on GitHub ↗
(job: JobState, completed: bool)

Source from the content-addressed store, hash-verified

37
38
39def _submit_response(job: JobState, completed: bool) -> dict:
40 payload: dict = {
41 'job_id': str(job.id),
42 'status': job.status.value,
43 'message': job.message,
44 'completed': completed,
45 'usage': job.usage.model_dump(mode='json'),
46 'metadata': job.metadata,
47 }
48 if completed:
49 payload['result'] = {
50 'final_markdown_path': job.artifacts.final_markdown_path,
51 'report_pdf_path': job.artifacts.report_pdf_path,
52 }
53 return payload
54
55
56def _create_job(pdf_path: Path, title: str | None) -> JobState:

Callers 1

cmd_submitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected