You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug:
In src/google/adk/integrations/redis/README.md (lines 45–48, under ## Quick Start), the runnable Quick Start snippet constructs Agent with instructions= (plural) instead of instruction= (singular). Because LlmAgent sets extra="forbid", running the Quick Start snippet immediately fails with a Pydantic ValidationError on both google-adk==2.14.1 and main (9eb6d9d9).
Steps to Reproduce:
Run the adk-verify-snippets script (or copy-paste the ## Quick Start block from src/google/adk/integrations/redis/README.md lines 31–56):
Observe Phase 1 load failure on Snippet 1 (Quick Start).
Expected Behavior:
The Quick Start snippet uses instruction="You are a helpful AI assistant." and loads cleanly (Agent + Runner instantiate without error).
Observed Behavior:
File "snippet_1_quick_start.py", line 14, in <module>
agent = Agent(
pydantic_core._pydantic_core.ValidationError: 1 validation error for LlmAgent
instructions
Extra inputs are not permitted [type=extra_forbidden, input_value='You are a helpful AI assistant.', input_type=str]
For further information visit https://errors.pydantic.dev/2.14/v/extra_forbidden
Changing line 47 from instructions= to instruction= allows the entire Quick Start snippet (RedisSessionServiceConfig, RedisSessionService, Agent, Runner) to load cleanly.
Activity