Code Generator
Category: Agent Standards: Code review standards
Generate code for workflows and transformations (Python, JS, SQL)
What this node does
- Python generation
- JavaScript generation
- SQL generation
- Code explanation
How to use
- In the Hydra Builder, open or create a workflow
- In the node palette on the left, find Code Generator under the Agent category (or use the search bar)
- Drag the node onto the canvas
- Double-click the node to open its configuration dialog
- Fill in the required parameters (see Configuration below)
- Connect the Task Description input port from an upstream node
- Optionally connect the Programming Language port if needed
- Connect the Generated Code and Code Explanation output to the next node downstream
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Task Description | text | ✓ | Plain text string |
| Programming Language | text | Optional | Plain text string |
Outputs
| Port | Type | Description |
|---|---|---|
| Generated Code | text | Plain text string |
| Code Explanation | text | Plain text string |
Configuration
Open the configuration dialog by double-clicking the Code Generator node on the canvas.
| Parameter | What to enter |
|---|---|
language | Configure language in the node settings |
includeTests | Configure includeTests in the node settings |
includeComments | Configure includeComments in the node settings |
llmConfig | Configure llmConfig in the node settings |
When to use this node
- Generate data transformations
- Create custom validators
- Build workflow logic
Need help configuring this node?
Go to Settings → Connectors to set up the connection this node depends on, then reference the connector ID in the node configuration dialog.