Snowflake Tool > Introduction to Snowflake Tool > Configure the Snowflake Tool
  

Configure the Snowflake Tool

Before you run the Python script in the Snowflake tool, ensure that your Python environment contains the following libraries:
If these libraries are not installed, you can install them using the following command:
./<Latest AI Agent Runtime service version>/pythonRuntime/python/bin/pip install requests json time
To configure the Snowflake tool, perform the following steps:
  1. 1Open the Snowflake_Tool tool connection.
  2. 2On the Code tab, uncomment the configuration block and enter the following property values within double quotes:
  3. The following snippet shows a sample configuration block:
    # --- Configuration ---
    ENV_FILE = ".env"
    # After first run you need remove this 'set_key' block
    #set_key(ENV_FILE, "SNOWFLAKE_ACCOUNT_IDENTIFIER", "") # e.g., "your_account.us-east-1"
    #set_key(ENV_FILE, "SNOWFLAKE_USERNAME", "") # Add your Snowflake username here
    #set_key(ENV_FILE, "SNOWFLAKE_PROGRAMMATIC_ACCESS_TOKEN", "") # Programmatic access token for authentication
    After the initial run, you can remove these values.
    Alternatively, you can manually add these values to your environment variables.
  4. 3On the Input Parameters tab, enter values for the following parameters to execute an SQL query:
  5. You can specify these values as defaults or provide them for each query.
  6. 4Save the connection.