codegen
Converts natural-language prompts into Python code for the CFX stage. Requests clarification when details are missing, using session IDs to maintain context.
Instructions
Generate Python code for the cfx stage from a natural-language prompt. Returns either status='ok' with code, or status='needs_clarification' with one or more clarifications to answer via the clarify tool. Pass the returned session_id back on follow-up calls to keep context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Natural-language user request to process. | |
| context | No | Optional model, file, or session context supplied by the caller. | |
| session_id | No | Conversation identifier used to retrieve or continue context. Default is ``None``. |