google / google/adk-python

[Live] Expose RunConfig in `get_fast_api_app`

Offen
#3,389 6 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @hangfei Auf GitHub ansehen
live needs review
Vorherrschende Sprache
Python
Sterne
21.5k
Forks
4k
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
37

Beschreibung

** Please make sure you read the contribution guide and file the issues in the right place. **
[Contribution guide.](https://google.github.io/adk-docs/contributing-guide/)

**Is your feature request related to a problem? Please describe.**
For the Live API, the RunConfig exposes key configurations such as VAD and Speech configuration.
I do not see any way of configuring the RunConfig from the outside, and it's declaration is hidden in the runner `run_live` / `AdkWebServer.run_agent_live`.

https://github.com/google/adk-python/blob/38ea749c9cec8e65f5e768f49fd2de79b5545571/src/google/adk/runners.py#L773C1-L773C43
https://github.com/google/adk-python/blob/38ea749c9cec8e65f5e768f49fd2de79b5545571/src/google/adk/cli/adk_web_server.py#L1516C1-L1520C19

**Describe the solution you'd like**
Expose it to the `get_fast_api_app` method, or make it easier to override a single api.

**Describe alternatives you've considered**
I tried copy pasting the `/run_live` API outside but there are dependencies with the `AdkWebServer` class ( `self.session_service` and `self.get_runner_async` ).
This makes it difficult to override the behaviour of the `/run_live` api.

**Additional context**
none.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.