docs(redis): Quick Start snippet in src/google/adk/integrations/redis/README.md passes invalid Agent(instructions=...) kwarg
Maintainer antworten meist innerhalb von 3 Tagen
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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-snippetsscript (or copy-paste the## Quick Startblock fromsrc/google/adk/integrations/redis/README.mdlines 31–56):uv run --python 3.12 --with "google-adk==2.14.1" --with "redis" \ python .agents/skills/adk-verify-snippets/scripts/verify_md.py \ src/google/adk/integrations/redis/README.md - 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.
Environment Details:
- ADK Library Version:
google-adk 2.14.1(also reproduced againstmain9eb6d9d9),redis 8.1.0 - Desktop OS: macOS (Darwin arm64)
- Python Version:
3.12.13
Model Information:
- Are you using LiteLLM: N/A (fails offline during
Agent(...)construction) - Which model is being used: N/A
Note: Audited with .agents/skills/adk-verify-snippets and drafted with AI assistance; all commands and outputs were run locally offline.
- Vorherrschende Sprache
- Python
- Sterne
- 22.3k
- Forks
- 4.4k
- Ø Merge
- 1 T. 2 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus google/adk-python
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
google/adk-python#8360 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
google/adk-python#8359 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Can pin to litellm version be changed?Evtl. vergeben @llalitkumarrr hat das vor 10 Tagen übernommen. Offenmodels
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
google/adk-python#8129 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
-
OpenAPI tools ignore operation- and path-level server overridesEvtl. vergeben @sanketpatil06 hat das vor 14 Tagen übernommen. Offentools
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
google/adk-python#8064 · 4 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Two docstrings in openapi_tool document parameters the signatures do not acceptEvtl. vergeben @surajksharma07 hat das vor 17 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
google/adk-python#8024 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in google/adk-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
vllm-project/vllm#70030 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TigreGotico/tugaphone#408 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
gke-labs/kube-agents#7308 ·
Maintainer antworten meist innerhalb von 1 Tag
-
t: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 3 Tagen
-
chore
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
lugassawan/swe-workbench#841 ·