Skip to content

DeploymentStatus

relationalai.agent.cortex.deployment_config
DeploymentStatus(agent_exists: bool, stage_exists: bool, sprocs: Dict[str, bool])

Status information for a Cortex agent deployment.

Returned by CortexAgentManager.status() to indicate which components exist.

>>> status = manager.status()
>>> status.fully_deployed()
True
DeploymentStatus.agent_exists: bool

True if the Cortex agent is registered.

DeploymentStatus.stage_exists: bool

True if the Snowflake stage exists.

DeploymentStatus.sprocs: dict of str to bool

Dictionary mapping stored procedure names to existence booleans. Keys are the four RAI tool names: RAI_DISCOVER_MODELS, RAI_VERBALIZE_MODEL, RAI_EXPLAIN_CONCEPT, RAI_QUERY_MODEL.

DeploymentStatus.fully_deployed() -> bool

Check if all components are deployed and ready.

Returns:

  • bool - True if agent, stage, and all stored procedures exist.
DeploymentStatus.partially_deployed() -> bool

Check if deployment is incomplete.

Returns:

  • bool - True if at least one component exists but not all. False if either all components exist or none exist.

Notes:

Partial deployments usually indicate a failed deployment that needs cleanup before retrying.

DeploymentStatus.clean() -> bool

Check if all components have been removed.

Returns:

  • bool - True if no components exist (ready for fresh deployment).