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.
Examples
Section titled “Examples”>>> status = manager.status()>>> status.fully_deployed()TrueAttributes
Section titled “Attributes”.agent_exists
Section titled “.agent_exists”DeploymentStatus.agent_exists: boolTrue if the Cortex agent is registered.
.stage_exists
Section titled “.stage_exists”DeploymentStatus.stage_exists: boolTrue if the Snowflake stage exists.
.sprocs
Section titled “.sprocs”DeploymentStatus.sprocs: dict of str to boolDictionary 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.
Methods
Section titled “Methods”.fully_deployed()
Section titled “.fully_deployed()”DeploymentStatus.fully_deployed() -> boolCheck if all components are deployed and ready.
Returns:
bool-Trueif agent, stage, and all stored procedures exist.
.partially_deployed()
Section titled “.partially_deployed()”DeploymentStatus.partially_deployed() -> boolCheck if deployment is incomplete.
Returns:
bool-Trueif at least one component exists but not all.Falseif either all components exist or none exist.
Notes:
Partial deployments usually indicate a failed deployment that needs cleanup before retrying.
.clean()
Section titled “.clean()”DeploymentStatus.clean() -> boolCheck if all components have been removed.
Returns:
bool-Trueif no components exist (ready for fresh deployment).
Returned By
Section titled “Returned By”agent > cortex > cortex_agent_manager └── CortexAgentManager └── status