Skip to content

Python package and CLI 1.20.0

PyRel 1.20.0 adds a prefix field to DeploymentConfig so multiple Cortex agents can share one Snowflake schema, and improves the error message for unsupported operators in prescriptive problem expressions.

How to install this version

Review the changes below before installing. To install this version, activate a compatible Python virtual environment and run:

Terminal window
python -m pip install "relationalai==1.20.0"

For the latest installation instructions, see Start building with PyRel.

  • Multiple Cortex agents can now share the same Snowflake schema by assigning each a unique prefix. Previously, each agent required its own schema, leading to schema sprawl and management overhead. Now you can keep related agents together:

    from relationalai.agent.cortex import DeploymentConfig
    # Customer service agent
    service_config = DeploymentConfig(
    database="APPS",
    schema="AGENTS",
    agent_name="customer_service",
    prefix="service", # stored procedures: service_RAI_*
    )
    # Sales agent in the same schema
    sales_config = DeploymentConfig(
    database="APPS",
    schema="AGENTS",
    agent_name="sales",
    prefix="sales", # stored procedures: sales_RAI_*
    )

    Existing deployments without a prefix continue to work unchanged.

  • Unsupported operators in prescriptive problems now raise clearer error messages. When you use an operator like % or // in a Problem expression, you get a helpful message that points you to fix the operator:

    # Now raises a NotImplementedError because % is not supported
    problem.add_constraint(quantity % 2 == 0)