Author a complete problem
repovive_build_author_complete_problemImport a complete problem into a draft: replace test cases, then write metadata, statement, tests, solution, editorial, and validator. Check report to confirm readiness before publishing separately.
Instructions
Import a complete problem into a draft in one call: clears the existing test cases (unless replace_testcases=False), then writes metadata, statement, test cases, the reference solution, editorial pages and input validator. Returns a per-step report — check all_ok before treating the draft as ready. This edits a private draft; publishing it to a contest is a separate call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Build session id to write into | |
| problem_json | Yes | A problem object (e.g. from repovive_generate_problem) | |
| learn_pages_json | No | Optional editorial pages: [{"title": str, "content": str}] | |
| validator_source | No | Optional input-validator source | |
| replace_testcases | No | Delete existing manual test cases first |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |