Skip to main content

analyst_agentic_optimizations

Creates, updates, deletes, gets or lists an analyst_agentic_optimizations resource.

Overview

Nameanalyst_agentic_optimizations
TypeResource
Idsnowflake.cortex.analyst_agentic_optimizations

Fields

The following fields are returned by SELECT queries:

OK. Retrieved optimization.

NameDatatypeDescription
request_idstringUnique request ID (example: abcd1234-5678-90ab-cdef-1234567890ab)
outcomestringAn opaque string containing the outcome of the optimization, separate from the state. This should be the JSON-encoded form of an AgenticOptimizationOutcome protobuf message. (example: {"extensions": ""})
statestringAn opaque string containing the state of the optimization. (example: {"progress": 0.5, "details": "Halfway through the optimization"})
statusstringThe status of an agentic optimization run. (IN_PROGRESS, COMPLETED, FAILED, CANCELED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoptimization_name, endpointGet the status and state of a specified agentic optimization run
list_agentic_optimizationsexecendpoint, semantic_modelList all agentic optimization runs for a given base model

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringOrganization and account identifier (orgname-accountname) (default: orgname-accountname)
optimization_namestringThe fully-qualified name of the optimization to retrieve.

SELECT examples

Get the status and state of a specified agentic optimization run

SELECT
request_id,
outcome,
state,
status
FROM snowflake.cortex.analyst_agentic_optimizations
WHERE optimization_name = '{{ optimization_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

List all agentic optimization runs for a given base model

EXEC snowflake.cortex.analyst_agentic_optimizations.list_agentic_optimizations
@endpoint='{{ endpoint }}' --required
@@json=
'{
"semantic_model": "{{ semantic_model }}",
"experimental": "{{ experimental }}"
}'
;