Cortex Complete
cortex_completeRun LLM text completions via Snowflake AI_COMPLETE using a chosen model and prompt, with optional temperature and max_tokens, returning a string response.
Instructions
Run LLM completion via Snowflake AI_COMPLETE (e.g., 'llama3.3-70b', 'llama3.1-8b'). Optional temperature (0 to 1) and max_tokens are sent as model_parameters only when set; with neither set the call stays AI_COMPLETE(model, prompt) and still returns a string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "cortex_complete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | llama3.3-70b | |
| prompt | Yes | ||
| max_tokens | No | ||
| temperature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||