feat: add model and budget configs to cortex_agent materialization - #20
Merged
Conversation
…loses #19) Promotes `models.orchestration` and `orchestration.budget` from hand-written spec YAML to first-class config() options, so the orchestration model and spending limits can be shared via dbt vars or overridden per environment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #19. Promotes
models.orchestrationandorchestration.budgetfrom hand-written spec YAML to first-classconfig()options in specification mode, mirroring the existingweb_search_tool,comment, andprofileconfigs.modelconfig (string): setsmodels.orchestrationin the spec YAML, e.g.model = 'claude-opus-4'budgetconfig: accepts a plain int as shorthand for{seconds: <n>}, or a dict withseconds/tokenskeys; injects anorchestration.budgetblock into the spec YAMLcortex_agent_render_model_and_budgethelper macro that prepends the YAML block before the user's spec bodymodels:ororchestration:key, or if either config is used withraw_ddl=trueTest plan
dbt runinintegration_tests/—agent_with_model_and_budgetandagent_with_budget_shorthandshould compile and execute without errortarget/compiled/to confirm the YAML preamble (models:,orchestration:) appears correctly before the spec bodyseconds:(notokens:line)raw_ddl=truewarning now namesmodelandbudget🤖 Generated with Claude Code