Skip to content

docs: fix playbook example in ext-feedback#187

Merged
maximelb merged 1 commit intomasterfrom
fix/feedback-playbook-example
Apr 13, 2026
Merged

docs: fix playbook example in ext-feedback#187
maximelb merged 1 commit intomasterfrom
fix/feedback-playbook-example

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

Summary

  • The playbook example in the Feedback extension doc used def main(lc, data) with a non-existent lc.extension_request() method
  • Fixed to use the correct def playbook(sdk, data) signature (ext-playbook looks up globals['playbook'], not main)
  • Uses the Feedback SDK class which is the proper way to make feedback requests from a playbook

Three bugs fixed

  1. Wrong function name: mainplaybook
  2. Wrong parameter name: lcsdk
  3. Non-existent method: lc.extension_request(...)Feedback(sdk).request_simple_approval(...)

The companion tutorial (human-in-the-loop-response.md) already uses the correct signature.

🤖 Generated with Claude Code

…gnature

The playbook example used `def main(lc, data)` with a non-existent
`lc.extension_request()` method. Playbooks must use `def playbook(sdk, data)`
where sdk is a limacharlie.Manager (v4), and `sdk.extensionRequest()` to
make extension requests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maximelb maximelb force-pushed the fix/feedback-playbook-example branch from 605aefa to fd41564 Compare April 13, 2026 22:50
@maximelb maximelb requested a review from steveatlc April 13, 2026 22:51
@maximelb maximelb added the to-code-review Used to tag PRs that are force-pushed and will need to be reviewed after the fact. label Apr 13, 2026
@maximelb maximelb merged commit de873ef into master Apr 13, 2026
2 checks passed
@maximelb maximelb deleted the fix/feedback-playbook-example branch April 13, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

to-code-review Used to tag PRs that are force-pushed and will need to be reviewed after the fact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant