hwp_autopilot_create
Automates HWP document creation from sections and tables, applying templates, styles, TOC, validation, and PDF export.
Instructions
문서 자동 생성 12단계 파이프라인. (v0.7.2.4 / v0.7.4.0 / v0.7.5.4) sections[]/tables[]를 받아 template 기반으로 작성→스타일→TOC→검증→저장→PDF→layout 검증. v0.7.5.4: auto_fix 기본값 false + preserve_template_style 기본값 true (원본 템플릿 서식 보존). mode=plan은 estimate만, mode=execute는 실제 파이프. 각 step 마다 session_state 자동 save + cancel 체크.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | plan=estimate만, execute=실제 실행 (기본 execute) | |
| prompt | No | 원본 사용자 프롬프트 (메타데이터) | |
| tables | No | 삽입할 표 목록 (sections 다음에 일괄 삽입) | |
| auto_fix | No | v0.7.5.4: 기본 false. validate_consistency 점수 < threshold 여도 자동 override 안 함. true 여도 runAutoFixLoop 가 P0-2 에서 no-op 전환됨 (validate 만 수행). | |
| sections | No | 미리 생성된 섹션 콘텐츠 (호출자가 LLM으로 작성). plan_session_id 사용 시 생략 가능. | |
| export_pdf | No | 완료 후 PDF 변환 (기본 true) | |
| session_id | No | 재개할 세션 (생략 시 자동 생성) | |
| output_path | No | 생성할 .hwp/.hwpx 절대 경로 (plan_session_id 사용 시 생략 가능) | |
| template_id | No | hwp_template_library 등록 ID (template_path 대신) | |
| style_profile | No | apply_style_profile에 전달할 프로파일 | |
| template_path | No | 템플릿 .hwpx 경로 (없으면 빈 문서로 시작) | |
| plan_session_id | No | hwp_autopilot_plan 이 만든 plan session_id. 지정 시 sections/tables/style_profile/output_path/template_path 를 해당 세션에서 자동 로드 (개별 인자 우선) | |
| auto_fix_threshold | No | auto_fix 트리거 점수 (기본 85, auto_fix=true 일 때만 의미) | |
| auto_fix_max_iterations | No | auto_fix 최대 반복 횟수 (기본 2, 안전 한도 5) | |
| preserve_template_style | No | v0.7.5.4: 원본 템플릿의 서식 (heading/body/cell) 을 변경하지 않음. true 시 style_profile override 무시. 공무원 양식 작업 시 권장 (기본 true). | |
| approve_threshold_seconds | No | estimate가 이를 넘으면 awaiting_approval 반환 (기본 600) |