google / google/adk-docs

Following Loop Agent document,raise KeyError: 'Context variable not found: `initial_topic`.'

Open
#832 2 comments 0 reactions 1 assignee Claimed by @polong-lin View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
1.3k
Avg merge
7d 1h
Merged PRs (30d)
34

Description

Hi, I'm totally new to ADK. When I follow the [Loop Agent](https://google.github.io/adk-docs/agents/workflow-agents/loop-agents/#full-example-iterative-document-improvement) document, I got the error below:
```
KeyError: 'Context variable not found: `initial_topic`.'
```
Steps to reproduce:
1. `mkdir loop_agent`, prepare everything
2. pasting the code in the document to `agent.py`
3. ran `adk run loop_agent`
4. input any sentence
5. The error above raised

How can I fix it? Can anyone help us? thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.