From a7f4e02dc770724515318a51047fc885f55a5a71 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Fri, 12 Sep 2025 00:18:40 -0700 Subject: [PATCH] chore: Clarify that `LLMResponse.content` should only contain user/model-generated content PiperOrigin-RevId: 806157090 --- src/google/adk/models/llm_response.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/google/adk/models/llm_response.py b/src/google/adk/models/llm_response.py index ba8e924e..fd14ff2d 100644 --- a/src/google/adk/models/llm_response.py +++ b/src/google/adk/models/llm_response.py @@ -52,7 +52,11 @@ class LlmResponse(BaseModel): """The pydantic model config.""" content: Optional[types.Content] = None - """The content of the response.""" + """The generative content of the response. + + This should only contain content from the user or the model, and not any + framework or system-generated data. + """ grounding_metadata: Optional[types.GroundingMetadata] = None """The grounding metadata of the response."""