Repository navigation
Document usage_limits on all common.ai LLM operators - #73283
Merged
Merged
Conversation
Every LLMOperator subclass enforces usage_limits on its run, but the parameter was only documented on the LLMOperator and AgentOperator pages. Readers of the branch, SQL, schema-compare and file-analysis pages, whose parameter lists already cover agent_params and the inherited HITL options, had no way to learn that a per-run token, request, tool-call or cost budget is available there too.
ColtenOuO
requested review from
Lee-W,
ashb,
gopidesupavan and
kaxil
as code owners
September 17, 2026 11:57
shahar1
approved these changes
Sep 17, 2026
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.
Sumarry
usage_limitsis accepted by everyLLMOperatorsubclass (LLMBranchOperator,LLMSQLQueryOperator,LLMSchemaCompareOperator,LLMFileAnalysisOperator), and each of them coerces it and passes it toagent.run_sync, but it was only documented on theLLMOperatorandAgentOperatorpages. The parameter lists on the sibling operator pages already coveragent_paramsand the inherited HITL parameters, so a reader of those pages had no way to find out that a per-run token, request, tool-call, or cost budget can be set there too.This PR adds
usage_limitsto the parameter lists of theLLMBranchOperator,LLMSchemaCompareOperator, andLLMFileAnalysisOperatorpages, adds a short "Usage Limits" section to theLLMSQLQueryOperatorpage (which has no parameter list), and mentions the inherited parameter in the four operators' docstrings next to the existing "inherited from LLMOperator" note. All of them link to the existing "Usage Limits" section of theLLMOperatorpage through a newhowto/operator:llm_usage_limitslabel rather than repeating its caveats.No behavior change.
Was generative AI tooling used to co-author this PR?