Open
Conversation
- Add ClientToolEvent dataclass and CLIENT_TOOL_EVENT_RECEIVED event - Handle clientToolEvent data channel messages in _handle_data_message - Emit event when LLM invokes client-side tools - Add unit test for client tool event handling - Document in README with example usage Made-with: Cursor
- Add ReasoningStreamEvent, ReasoningMessage types - Add REASONING_STREAM_EVENT_RECEIVED and REASONING_HISTORY_UPDATED events - Handle reasoningText data channel messages in _handle_data_message - Track reasoning history and emit REASONING_HISTORY_UPDATED on end_of_thought - Add get_reasoning_history() method - Add unit tests for reasoning event handling - Document in README with examples Made-with: Cursor
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.
Adding Client Side Tool Events support: - Receive function/tool invocations from the LLM for custom client-side logic (function calling)
Reasoning Stream events support: -Receive LLM chain-of-thought/reasoning as it streams (REASONING_STREAM_EVENT_RECEIVED, REASONING_HISTORY_UPDATED)
Summary by cubic
Adds client-side tool events (function calling) and reasoning stream events to the Python SDK so apps can handle LLM-invoked tools and stream chain-of-thought with history tracking.
Written for commit a8dddac. Summary will update on new commits.