Skip to content

Conversation

balaraj74
Copy link

This commit adds support for Azure Foundry Code Interpreter to Flowise, enabling users to execute Python code directly within their flows using Azure's secure sandbox environment.

Features:

  • New CodeInterpreterAzureFoundry node that integrates with Azure Foundry API
  • Supports executing Python code blocks in a secure sandbox environment
  • Handles code execution outputs including text, images, and files
  • Automatic session management with configurable timeouts
  • File download support for generated outputs (images, data files, etc.)
  • Full integration with Flowise's artifact system for displaying results
  • Utilizes existing Azure Foundry API credentials

Implementation Details:

  • Created new tool node in packages/components/nodes/tools/CodeInterpreterAzureFoundry/
  • Implements session-based execution for persistent environments across multiple code runs
  • Supports all standard Python packages (numpy, pandas, matplotlib, scipy, etc.)
  • Error handling with automatic session cleanup
  • Image output support (PNG, JPEG) with automatic storage
  • Generic file output support for downloads

Usage:
Users can now add the 'Code Interpreter by Azure Foundry' node to their flows and execute Python code for data analysis, visualization, and automation tasks using their Azure infrastructure.

Closes #5302

This commit adds support for Azure Foundry Code Interpreter to Flowise, enabling users to execute Python code directly within their flows using Azure's secure sandbox environment. Features: - New CodeInterpreterAzureFoundry node that integrates with Azure Foundry API - Supports executing Python code blocks in a secure sandbox environment - Handles code execution outputs including text, images, and files - Automatic session management with configurable timeouts - File download support for generated outputs (images, data files, etc.) - Full integration with Flowise's artifact system for displaying results - Utilizes existing Azure Foundry API credentials Implementation Details: - Created new tool node in packages/components/nodes/tools/CodeInterpreterAzureFoundry/ - Implements session-based execution for persistent environments across multiple code runs - Supports all standard Python packages (numpy, pandas, matplotlib, scipy, etc.) - Error handling with automatic session cleanup - Image output support (PNG, JPEG) with automatic storage - Generic file output support for downloads Usage: Users can now add the 'Code Interpreter by Azure Foundry' node to their flows and execute Python code for data analysis, visualization, and automation tasks using their Azure infrastructure. Closes FlowiseAI#5302
@HenryHengZJ
Copy link
Contributor

This is superb! Do you have some screenshots to share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants