mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
docs: Fixes null check for reflect_retry plugin sample
PiperOrigin-RevId: 824836190
This commit is contained in:
committed by
Copybara-Service
parent
6c3882f2d6
commit
86f01550bd
@@ -55,6 +55,8 @@ def after_model_callback(
|
||||
|
||||
if (
|
||||
llm_response.content
|
||||
and llm_response.content.parts
|
||||
and llm_response.content.parts[0].function_call
|
||||
and llm_response.content.parts[0].function_call.name == "roll_die"
|
||||
):
|
||||
llm_response.content.parts[0].function_call.name = "roll_die_wrong_name"
|
||||
|
||||
Reference in New Issue
Block a user