-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pass structured tool results via RPC instead of stringifying #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SteveSandersonMS
merged 12 commits into
github:main
from
Morabbin:morabbin/fix-tool-result-stringify
Apr 1, 2026
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f412754
Pass structured tool results via RPC instead of stringifying
Morabbin d6f3861
Address review feedback: restore Go fallback, add test, fix snapshot
Morabbin 6677e8d
Strengthen toolTelemetry test assertions
Morabbin 100aeb7
Add tool_results e2e tests for Python, Go, and .NET
Morabbin 13d2f5f
Fix Python ruff formatting and .NET JSON serialization
Morabbin 0b1d5a0
Fix Python line length and .NET partial class for source gen
Morabbin 5a8206c
Fix Python SDK to always send structured tool results
Morabbin 9700109
Distinguish exception-originated failures from deliberate ones
Morabbin caac425
Address code review: tighter guards, default ResultType, session cleanup
Morabbin 0aaf094
Add 'timeout' to ToolResultType in Node and Python
Morabbin f84feec
Fix prettier formatting in session.ts
Morabbin dcfd607
Make _from_exception a typed dataclass field; revert accidental snaps…
Morabbin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
20 changes: 20 additions & 0 deletions
20
...l_results/should_preserve_tooltelemetry_and_not_stringify_structured_results_for_llm.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| models: | ||
| - claude-sonnet-4.5 | ||
| conversations: | ||
| - messages: | ||
| - role: system | ||
| content: ${system} | ||
| - role: user | ||
| content: Analyze the file main.ts for issues. | ||
| - role: assistant | ||
| tool_calls: | ||
| - id: toolcall_0 | ||
| type: function | ||
| function: | ||
| name: analyze_code | ||
| arguments: '{"file":"main.ts"}' | ||
| - role: tool | ||
| tool_call_id: toolcall_0 | ||
| content: "Analysis of main.ts: no issues found" | ||
| - role: assistant | ||
| content: "The analysis of main.ts is complete -- no issues were found." |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.