Skip to content

Commit d6c964e

Browse files
seanzhougooglecopybara-github
authored andcommitted
fix: Create a new session resumption config if it's None
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 853933839
1 parent 23d330e commit d6c964e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/google/adk/flows/llm_flows/base_llm_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ async def run_live(
116116
attempt += 1
117117
if not llm_request.live_connect_config:
118118
llm_request.live_connect_config = types.LiveConnectConfig()
119+
if not llm_request.live_connect_config.session_resumption:
120+
llm_request.live_connect_config.session_resumption = (
121+
types.SessionResumptionConfig()
122+
)
119123
llm_request.live_connect_config.session_resumption.handle = (
120124
invocation_context.live_session_resumption_handle
121125
)

0 commit comments

Comments
 (0)