From fa110c22f2a1d18afc912820c66929ac10fd7e3e Mon Sep 17 00:00:00 2001 From: "Xiang (Sean) Zhou" Date: Tue, 10 Jun 2025 08:48:05 -0700 Subject: [PATCH] chore: refine doc string of global_instruction PiperOrigin-RevId: 769650108 --- src/google/adk/agents/llm_agent.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/google/adk/agents/llm_agent.py b/src/google/adk/agents/llm_agent.py index 22187b36..2b659ef7 100644 --- a/src/google/adk/agents/llm_agent.py +++ b/src/google/adk/agents/llm_agent.py @@ -129,7 +129,7 @@ class LlmAgent(BaseAgent): global_instruction: Union[str, InstructionProvider] = '' """Instructions for all the agents in the entire agent tree. - global_instruction ONLY takes effect in root agent. + ONLY the global_instruction in root agent will take effect. For example: use global_instruction to make all agents have a stable identity or personality. @@ -204,6 +204,11 @@ class LlmAgent(BaseAgent): """ # Advance features - End + # TODO: remove below fields after migration. - Start + # These fields are added back for easier migration. + examples: Optional[ExamplesUnion] = None + # TODO: remove above fields after migration. - End + # Callbacks - Start before_model_callback: Optional[BeforeModelCallback] = None """Callback or list of callbacks to be called before calling the LLM.