Skip to content

feat: add support for session resumption(only transparent mode) config to run_config #2002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

copybara-service[bot]
Copy link

feat: add support for session resumption(only transparent mode) config to run_config

This commit adds support for the session resumption configuration in the run_config.
The SessionResumptionConfig is added to RunConfig to allow the user to set up a configuration for session resumption(only transparent mode for now).

There are two modes of session resumption: manual and transparent. In manual mode, you have to manually bookkeeping the session information and restarts the session which is tricky to do right now. In transparent mode, the server does the bookkeeping for you and no hassle on ADK side. For now, the transparent mode should be enough.

Also, added the relevant unit tests to check that every possible configuration is set properly and the run_config is correctly populated.
This is needed for supporting the new session resumption feature.

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Jul 16, 2025
@copybara-service copybara-service bot force-pushed the copybara/783876503 branch from 6d2d2d0 to 2041f03 Compare July 24, 2025 04:30
…g to run_config

This commit adds support for the session resumption configuration in the run_config.
The SessionResumptionConfig is added to RunConfig to allow the user to set up a configuration for session resumption(only transparent mode for now).

There are two modes of session resumption: manual and transparent. In manual mode, you have to manually bookkeeping the session information and restarts the session which is tricky to do right now. In transparent mode, the server does the bookkeeping for you and no hassle on ADK side. For now, the transparent mode should be enough.

Also, added the relevant unit tests to check that every possible configuration is set properly and the run_config is correctly populated.
This is needed for supporting the new session resumption feature.

PiperOrigin-RevId: 786549455
@copybara-service copybara-service bot force-pushed the copybara/783876503 branch from 2041f03 to 5e8aa15 Compare July 24, 2025 04:37
@copybara-service copybara-service bot merged commit 5e8aa15 into main Jul 24, 2025
@copybara-service copybara-service bot deleted the copybara/783876503 branch July 24, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant