generate_code
Generate production-ready source code in any programming language from natural language descriptions. Ideal for rapid prototyping, boilerplate generation, or educational examples.
Instructions
Generate production-ready source code in any programming language from natural language requirements. The AI writes complete, well-commented code following best practices and naming conventions. Use this for rapid prototyping, boilerplate generation, or educational examples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requirement | Yes | Detailed functional description, e.g. 'A Python async function that fetches data from REST API with retry logic and error handling' | |
| language | Yes | Target programming language: python, javascript, typescript, java, go, rust, cpp, sql, html, css, etc. | |
| comments | No | Comment language: 'en' for English, 'cn' for Chinese. Default: 'en'. | en |