Skip to content

[CLI] Add --max_llm_calls flag to web and api_server #5434

Closed

Description

@EaCognitive

Feature Request

The RunConfig in the ADK SDK supports a max_llm_calls parameter to prevent infinite loops and control costs, but this is not currently accessible via the CLI for adk web or adk api_server.

Proposed Change

Add a --max_llm_calls flag to the CLI server commands to allow users to configure this limit.

Activity

  1. added
    core
    on Apr 21, 2026
  2. added theissue type on Apr 21, 2026
  3. klateefa commented on Apr 23, 2026

    @klateefa

    @EaCognitive
    Thanks for the update. The request is currently being reviewed, and I will let you know if anything further is needed. Thank you for your understanding.

  4. added
    needs review
    on Apr 23, 2026
  5. added a commit that references this issue on Oct 1, 2026
    14f4154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

coreneeds review

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions