docs(redis): Quick Start snippet in src/google/adk/integrations/redis/README.md passes invalid Agent(instructions=...) kwarg
Mantenedores costumam responder em até 3 dias
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 22.3k
- Forks
- 4.4k
- Merge médio
- 1d 2h
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de google/adk-python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
google/adk-python#8360 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
google/adk-python#8359 ·
Mantenedores costumam responder em até 3 dias
-
Can pin to litellm version be changed?Talvez já em andamento @llalitkumarrr assumiu há 10 dias. Abertamodels
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
google/adk-python#8129 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 3 dias
-
OpenAPI tools ignore operation- and path-level server overridesTalvez já em andamento @sanketpatil06 assumiu há 14 dias. Abertatools
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
google/adk-python#8064 · 4 comentários · 1 responsável ·
Mantenedores costumam responder em até 3 dias
-
Two docstrings in openapi_tool document parameters the signatures do not acceptTalvez já em andamento @surajksharma07 assumiu há 17 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
google/adk-python#8024 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 3 dias
Todas as issues de google/adk-python
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
vllm-project/vllm#70030 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
TigreGotico/tugaphone#408 ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
gke-labs/kube-agents#7308 ·
Mantenedores costumam responder em até 1 dia
-
t: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 3 dias
-
chore
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
lugassawan/swe-workbench#841 ·