Category
System prompts
By default, the SDK uses a built - in system prompt that provides the agent with its core capabilities, including file editing, code search, and shell access. You can either replace this prompt entirely or append additional instructions to…
Cortex Code Agent SDK
The Cortex Code Agent SDK lets you build agentic AI applications using Python and TypeScript. Your agents can read files, run commands, search codebases, execute SQL, and edit code, using the same tools and agent loop that power Cortex…
Cortex Agent SDK reference
Preview Feature — OpenAvailable to all accounts. Use this reference when you need details about SDK response objects, thread message helpers, transport wrappers, error classes, retry behavior, and per - request options.
Cortex Code Agent SDK reference – Python
Cortex Code Agent SDK reference – Python This topic provides the complete API reference for the Cortex Code Agent SDK for Python, including all functions, classes, and types. Installation Copy codepip install…
Use the asynchronous Python client
Preview Feature — OpenAvailable to all accounts. Use the asynchronous client to run independent conversations concurrently without blocking an event loop.
Handle approvals and user input
By default, the SDK enforces tool permissions and does not bypass them.
Cortex Code Agent SDK quickstart
This topic walks you through building an AI agent that reads a data pipeline script, finds bugs, and fixes them automatically using the Cortex Code Agent SDK.
Implementing connector applications using SDK
Preview Feature — OpenAvailable to accounts in all regions in all cloud providers (including government regions). For details, contact your Snowflake representative.
Cortex Agent SDK
The Cortex Agent SDK helps you build applications that reason over your governed Snowflake data and take action with tools. Use it from Python or TypeScript to stream responses, preserve multi - turn conversations, run long tasks in…
Authenticate Cortex Agent SDK requests
The Cortex Agent SDK authenticates Cortex Agent REST API requests by asking an authenticator for HTTP headers. The SDK calls the authenticator before every request attempt, including transport retries and auth - refresh replays, so…