Skip to content

feat: document and test full Cortex Search tool_resource props (closes #3) - #4

Merged
Matts52 merged 1 commit into
mainfrom
resolve-issue-3-dbt-cortex-agent
Jun 17, 2026
Merged

feat: document and test full Cortex Search tool_resource props (closes #3)#4
Matts52 merged 1 commit into
mainfrom
resolve-issue-3-dbt-cortex-agent

Conversation

@Matts52

@Matts52 Matts52 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds filter to the Cortex Search tool_resources example in the README (was missing alongside max_results, title_column, id_column)
  • Adds integration_tests/models/agent_with_search.sql — a compile-only model that exercises all five Cortex Search tool_resources props (name, max_results, filter, title_column, id_column) via source()
  • Adds integration_tests/models/sources.yml with a placeholder source definition so the source() reference resolves at compile time
  • Excludes agent_with_search from the live Snowflake build (no real search service in the test env); the DuckDB compile test covers it automatically via the agent_* glob

Notes

No macro or materialization changes were required. The cortex_agent materialization already passes the model body through verbatim as FROM SPECIFICATION $$ ... $$, so all tool_resources fields (including filter) already work — this PR adds documentation and compile-time test coverage to make that explicit.

Test plan

  • Run ./scripts/run_compile_tests_duckdb.sh and confirm agent_with_search.sql appears in compiled output with the full YAML block (including filter) rendered correctly
  • Confirm existing models (agent_minimal, agent_with_semantic_view, agent_raw_ddl) compile unchanged
  • (Optional) Run Snowflake integration tests — agent_with_search is excluded so no live search service is required

🤖 Generated with Claude Code

…#3)

Add filter, max_results, title_column, and id_column to the README
specification-mode example for Cortex Search tool_resources. Add a
compile-only integration test model (agent_with_search) that exercises
all five props via source(), backed by a sources.yml placeholder. The
Snowflake live-build script excludes this model since no real search
service exists in the test environment; the DuckDB compile test covers it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Matts52
Matts52 merged commit cad1c9b into main Jun 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant