Skip to content

Document usage_limits on all common.ai LLM operators - #73283

Merged
shahar1 merged 1 commit into
apache:mainfrom
ColtenOuO:common-ai-document-usage-limits
Sep 17, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
ColtenOuO:common-ai-document-usage-limits

Conversation

@ColtenOuO

Copy link
Copy Markdown
Contributor

Sumarry

usage_limits is accepted by every LLMOperator subclass (LLMBranchOperator, LLMSQLQueryOperator, LLMSchemaCompareOperator, LLMFileAnalysisOperator), and each of them coerces it and passes it to agent.run_sync, but it was only documented on the LLMOperator and AgentOperator pages. The parameter lists on the sibling operator pages already cover agent_params and 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_limits to the parameter lists of the LLMBranchOperator, LLMSchemaCompareOperator, and LLMFileAnalysisOperator pages, adds a short "Usage Limits" section to the LLMSQLQueryOperator page (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 the LLMOperator page through a new howto/operator:llm_usage_limits label rather than repeating its caveats.

No behavior change.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

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.
@shahar1
shahar1 merged commit 66c31fa into apache:main Sep 17, 2026
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants