google / google/adk-python

[Live] Expose RunConfig in `get_fast_api_app`

Open
#3,389 6 comments 0 reactions 1 assignee Claimed by @hangfei View on GitHub
live needs review
Dominant language
Python
Stars
21.5k
Forks
4k
Avg merge
1d 14h
Merged PRs (30d)
37

Description

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

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.