Skip to content

fix: correct undefined variable names in state output_key example#1977

Merged
koverholt merged 2 commits into
google:mainfrom
Syed-Umer-Ali:fix/undefined-variables-state-output-key-example
Jul 20, 2026
Merged

fix: correct undefined variable names in state output_key example#1977
koverholt merged 2 commits into
google:mainfrom
Syed-Umer-Ali:fix/undefined-variables-state-output-key-example

Conversation

@Syed-Umer-Ali

Copy link
Copy Markdown
Contributor

Variables app_name and user_id were defined lowercase but referenced as APP_NAME and USER_ID (uppercase), causing NameError at runtime.## Summary

This PR fixes undefined variable references in the Python output_key example on the State documentation page.

The example defines app_name and user_id but later references APP_NAME and USER_ID, which are not defined and result in a NameError when the example is executed.

This change replaces the undefined uppercase variables with the correctly defined lowercase variables, making the example consistent and executable.

Variables app_name and user_id were defined lowercase but referenced as
APP_NAME and USER_ID (uppercase), causing NameError at runtime.
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 22835c5
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a5e8bc445691e00082b72f1
😎 Deploy Preview https://deploy-preview-1977--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@koverholt koverholt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for contributing this fix, which would cause a NameError. I verified the fix. LGTM, merging!

@koverholt
koverholt merged commit 5e70bc7 into google:main Jul 20, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants