chore: Clarify that LLMResponse.content should only contain user/model-generated content

PiperOrigin-RevId: 806157090
This commit is contained in:
Hangfei Lin
2025-09-12 00:18:40 -07:00
committed by Copybara-Service
parent 908757b47f
commit a7f4e02dc7
+5 -1
View File
@@ -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."""