Overview
The Code Runner is a powerful block type in Hunch that allows users to execute custom code as part of their AI workflows. It bridges the gap between AI-generated content and programmatic actions, enabling more complex and dynamic interactions within your canvas.What is a Code Runner?
A Code Runner block is a specialized component that can execute arbitrary Python or Bash code within a secure sandbox environment. It allows users to:- Process data from other blocks
- Perform calculations or data transformations
- Interact with external APIs or services
- Generate dynamic content or files
Key Features
- Language Support: Execute Python or Bash code directly within your workflow.
- Secure Execution: Code runs in an isolated sandbox environment for safety.
- Input Integration: Easily access data from connected input blocks.
- Output Flexibility: Generate text, files, or other data types as output.
- Package Management: Install and use Python packages as needed.