Skip to content

docs(callbacks): clarify Python callback parameter names#1727

Merged
koverholt merged 3 commits intogoogle:mainfrom
EfeDurmaz16:efe/callback-parameter-names
May 6, 2026
Merged

docs(callbacks): clarify Python callback parameter names#1727
koverholt merged 3 commits intogoogle:mainfrom
EfeDurmaz16:efe/callback-parameter-names

Conversation

@EfeDurmaz16
Copy link
Copy Markdown
Contributor

Summary

  • Adds a note that Python callback parameters must use the documented names because ADK passes them by keyword
  • Shows a short correct/incorrect before_agent_callback example to prevent TypeError failures

Fixes #1205.

Verification

  • git diff --check

@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 4ad5a80
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/69fb864ce051fd0008b97aff
😎 Deploy Preview https://deploy-preview-1727--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.

Copy link
Copy Markdown
Collaborator

@koverholt koverholt left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and contribution for an existing issue. I made some changes to the admonition formatting and type, and added a table for quick reference. LGTM, merging.

@koverholt koverholt merged commit 62f732e into google:main May 6, 2026
6 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.

Document that callback parameter names must match exactly (e.g., callback_context, not ctx)

2 participants