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
status = manager.status()status.fully_deployed()# TrueAttributes
.agent_exists
DeploymentStatus.agent_exists: boolTrue if the Cortex agent is registered.
.stage_exists
DeploymentStatus.stage_exists: boolTrue if the Snowflake stage exists.
.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
.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()
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()
DeploymentStatus.clean() -> boolCheck if all components have been removed.
Returns:
bool-Trueif no components exist (ready for fresh deployment).
Returned By
agent > cortex > cortex_agent_manager └── CortexAgentManager └── status