docs: Fixes null check for reflect_retry plugin sample

PiperOrigin-RevId: 824836190
This commit is contained in:
Wei Sun (Jack)
2025-10-27 22:13:06 -07:00
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"