Conversation
Add StopFailure hook event with StopFailureInput type (error, error_details, last_assistant_message) and on_stop_failure DSL method. Update SPEC.md for TypeScript SDK v0.2.80 and Python SDK v0.1.49, trimming notes to notable items only. Add APIRetryMessage to docs/messages.md and StopFailure to docs/hooks.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
StopFailurehook event for full TypeScript SDK v0.2.80 parity. Update SPEC.md and docs.Why
The TypeScript SDK added
StopFailure(fires when the agent stops due to an API error) and v0.2.78–v0.2.80 included bug fixes and CLI parity updates. The Python SDK v0.1.49 also added several features (get_session_info,tag/created_aton sessions,RateLimitEventtyped message). SPEC.md and docs needed updating to reflect current state.How
StopFailuretoHOOK_EVENTS,StopFailureInputtype (error,error_details,last_assistant_message),on_stop_failureDSL method onHookRegistryAPIRetryMessageto docs/messages.md (was missing), addStopFailureto docs/hooks.md