fix: make callback the first parameter for adding hook callback#545
fix: make callback the first parameter for adding hook callback#545Unshure wants to merge 1 commit intostrands-agents:mainfrom
Conversation
|
Issue: The referenced Python SDK PR #1706 is still open and not yet merged. Suggestion: Consider waiting until the Python SDK PR is finalized and merged to ensure alignment. If the Python PR changes direction during review, this change would need to be updated accordingly. |
|
Assessment: Comment This PR correctly reorders the Review Feedback
The code changes themselves are clean and all usages have been updated consistently. |
Code Review - PR #545Assessment: Comment This PR correctly reorders the Review Feedback
The code changes are clean and comprehensive. |
|
Can we just remove HookRegistry and migrate to plugins? IMHO there's no need for sdk-typescript/src/hooks/registry.ts Line 16 in 55d29d5 |
@zastrowm Are we adding |
In TS, we don't expose the ability to fire hooks and kept more apis as an implementation detail. I haven't seen any usage of folks firing custom events yet, and given the number of changes of hooks went through in python I figured it's better not to expose these items until we have use cases So in TS, you already don't have access to callbacks; the only apis we have are addCallback, addHook, removeHook; and all 3 are effectively not needed once we have addHook and plugins on agent |
Description
Breaking Change This reorders the parameters for the HookProvider
addCallbackmethod to align with the feedback in the python sdk pr: strands-agents/sdk-python#1706Related Issues
N/A
Documentation PR
TODO
Type of Change
Breaking change
Testing
How have you tested the change?
npm run checkChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.