myaiMake Yourself AI
Back to changelog
feature

Function Sandbox

Write and test custom Python functions in a secure sandbox environment.

Build custom logic without leaving the platform. The Function Sandbox is a secure, isolated Python environment where you can write, test, and deploy functions that extend myai's capabilities.

Sandbox Execution

Functions run in a sandboxed environment with strict resource limits. Network I/O is blocked by default—external data access happens through managed tool proxies, not raw network calls. This prevents accidental data leaks and keeps your infrastructure secure.

Tool Proxies

Need to query a database, call an API, or fetch data? Use tool proxies instead of writing raw network requests. These proxies authenticate on your behalf, audit all requests, and ensure compliance with your organization's security policies.

Supported integrations:

  • SQL databases (Snowflake, Databricks, PostgreSQL)
  • Data warehouses (BigQuery)
  • REST APIs (via OAuth-managed tokens)

Live Testing

Write code in the editor, hit run, and see results instantly. The sandbox provides comprehensive error messages and performance metrics. Test your logic with real data before deploying to production functions.

For a complete guide to custom functions, see Functions.