http_client
relationalai.agent.cortex
http_client(conn: SnowflakeConnection, timeout: int = 300) -> httpx.ClientCreate an authenticated HTTP client for Snowflake Cortex API requests.
Parameters
Section titled “Parameters”
(connSnowflakeConnection) - An active Snowflake connection used to extract the account locator and session token.
(timeoutint, default:300) - Request timeout in seconds. Default: 300.
Returns
Section titled “Returns”httpx.Client- A configured HTTP client with authentication headers and the correct Snowflake base URL.
Examples
Section titled “Examples”>>> from relationalai.config import Config>>> conn = create_config().get_session().connection>>> client = http_client(conn)