google / google/adk-python

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

Open
#5,434 1 comment 0 reactions 2 assignees Claimed by @DeanChensj View on GitHub
core needs review
Dominant language
Python
Stars
21.5k
Forks
4k
Avg merge
1d 14h
Merged PRs (30d)
37

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.