From 28f3a22c043950b6e91d9ff2602f03df54e71d0c Mon Sep 17 00:00:00 2001 From: Matt Senick <32623708+Matts52@users.noreply.github.com> Date: Tue, 16 Jun 2026 23:01:31 -0700 Subject: [PATCH] fix: add execution_environment to Cortex Analyst tool_resources examples (closes #5) Co-Authored-By: Claude Sonnet 4.6 --- README.md | 3 +++ integration_tests/models/agent_with_semantic_view.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 462e958..0144294 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,9 @@ tools: tool_resources: Analyst1: semantic_view: "{{ ref('sales_semantic_view') }}" + execution_environment: + type: "warehouse" + warehouse: "MY_WAREHOUSE" Search1: name: "{{ source('cortex', 'policy_search_service') }}" max_results: 5 diff --git a/integration_tests/models/agent_with_semantic_view.sql b/integration_tests/models/agent_with_semantic_view.sql index 1e268ae..fc5d0c5 100644 --- a/integration_tests/models/agent_with_semantic_view.sql +++ b/integration_tests/models/agent_with_semantic_view.sql @@ -28,3 +28,6 @@ tools: tool_resources: OrdersAnalyst: semantic_view: "{{ ref('orders_semantic_view') }}" + execution_environment: + type: "warehouse" + warehouse: "{{ env_var('SNOWFLAKE_TEST_WAREHOUSE', 'COMPUTE_WH') }}"