generate_document
사용자의 사실관계로 한국 법률 문서 초안을 작성합니다(고소장·소장·내용증명·답변서·합의서·법률의견서 등). 초안의 모든 조문·판례 인용은 ask와 동일한 fail-closed law.go.kr 검증을 거칩니다. 유효한 doc_type 키는 list_document_types로 먼저 확인하세요. / Draft a Korean legal document from the user's facts. Every statute/precedent citation in the draft goes through the same fail-closed law.go.kr verification as ask. Use list_document_types first for valid doc_type keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Default ko. | |
| context | Yes | The user's facts/situation the document must be built from. | |
| doc_type | Yes | Document type key from list_document_types (e.g. 'complaint'). | |
| extra_instructions | No | Optional extra drafting instructions. |