feat: add tool_use_result field to UserMessage#495
Merged
ashwin-ant merged 1 commit intoanthropics:mainfrom Jan 23, 2026
Merged
feat: add tool_use_result field to UserMessage#495ashwin-ant merged 1 commit intoanthropics:mainfrom
ashwin-ant merged 1 commit intoanthropics:mainfrom
Conversation
Parse the tool_use_result field from user messages, which contains metadata about tool execution results including file edit details like filePath, oldString, newString, and structuredPatch.
ashwin-ant
approved these changes
Jan 23, 2026
ashwin-ant
added a commit
that referenced
this pull request
Jan 23, 2026
Bump version to 0.1.22 and update changelog with: - feat: add tool_use_result field to UserMessage (#495) - fix: add permissions to release job in auto-release workflow (#504) - chore: bump bundled CLI version to 2.1.19 - chore: extract build-and-publish workflow into reusable component (#488) Co-Authored-By: Claude <noreply@anthropic.com>
ashwin-ant
added a commit
that referenced
this pull request
Jan 23, 2026
## Summary - Bumps version from 0.1.21 to 0.1.22 in `pyproject.toml` and `src/claude_agent_sdk/_version.py` - Updates `CHANGELOG.md` with new entries for features, bug fixes, and internal changes included in this release ## Test plan - [ ] Verify version strings are consistent across `pyproject.toml` and `_version.py` - [ ] Verify changelog entry is properly formatted and references correct PRs - [ ] Confirm package builds successfully with the new version ## Changelog <!-- CHANGELOG:START --> Release v0.1.22 with the following changes: - Added `tool_use_result` field to `UserMessage` (#495) - Added permissions to release job in auto-release workflow (#504) - Updated bundled Claude CLI to version 2.1.19 - Extracted build-and-publish workflow into reusable component (#488) <!-- CHANGELOG:END --> 🤖 Generated with [Claude Code](https://claude.com/claude-code) (100% 11-shotted by claude) Co-authored-by: Claude <noreply@anthropic.com>
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.
Summary
Having tool_use_result on UserMessage allows for rich formatting of Claude's built-in tools in programs that use the SDK. Would love to gain access to this.