chunked_code_gen
Generate code files by writing functions in parallel. Specify functionality, language, and output path to assemble complete files from multiple concurrent processes.
Instructions
Generate code files by having bugs write functions in parallel.
Each bug writes one function, Python assembles the file.
output_path: Where to save the code file
spec: What the code should do
language: 'python', 'javascript', 'bash', etc.
num_functions: How many functions to generate (default 4, max 8)
EXAMPLE:
chunked_code_gen("/tmp/utils.py", "File utilities: read, write, copy, delete", "python", 4)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | ||
| spec | Yes | ||
| language | No | python | |
| num_functions | No |