Skip to content
2 changes: 1 addition & 1 deletion src/google/adk/plugins/global_instruction_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def before_model_callback(
return None

# Resolve the global instruction (handle both string and InstructionProvider)
readonly_context = ReadonlyContext(callback_context.invocation_context)
readonly_context = ReadonlyContext(callback_context._invocation_context)
final_global_instruction = await self._resolve_global_instruction(
readonly_context
)
Expand Down