MCPcopy
hub / github.com/HKUDS/DeepCode / start_paper_to_code

Function start_paper_to_code

new_ui/backend/api/routes/workflows.py:21–44  ·  view source on GitHub ↗

Start a paper-to-code workflow. Returns a task ID that can be used to track progress via WebSocket.

(
    request: PaperToCodeRequest,
    background_tasks: BackgroundTasks,
)

Source from the content-addressed store, hash-verified

19
20@router.post("/paper-to-code", response_model=TaskResponse)
21async def start_paper_to_code(
22 request: PaperToCodeRequest,
23 background_tasks: BackgroundTasks,
24):
25 """
26 Start a paper-to-code workflow.
27 Returns a task ID that can be used to track progress via WebSocket.
28 """
29 task = workflow_service.create_task()
30
31 # Run workflow in background
32 background_tasks.add_task(
33 workflow_service.execute_paper_to_code,
34 task.task_id,
35 request.input_source,
36 request.input_type,
37 request.enable_indexing,
38 )
39
40 return TaskResponse(
41 task_id=task.task_id,
42 status="started",
43 message="Paper-to-code workflow started",
44 )
45
46
47@router.post("/chat-planning", response_model=TaskResponse)

Callers

nothing calls this directly

Calls 2

TaskResponseClass · 0.90
create_taskMethod · 0.80

Tested by

no test coverage detected