Skip to content

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

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

docs(callbacks): clarify Python callback parameter names#1727
koverholt merged 3 commits into
google: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

netlify Bot commented May 5, 2026

Copy link
Copy Markdown

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.

@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.

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
joefernandez pushed a commit that referenced this pull request May 19, 2026
* docs(callbacks): clarify Python parameter names

* Make callback parameter name warning collapsible, add full parameter reference table

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
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