fix: fix skip_summarization for AgentTool #1248
Open
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.
This update addresses a situation where if I decided to skip summarizing some information, that raw information wasn't always passed along correctly when I was working on different parts of a task.
Here's what I changed:
When I decide to skip summarization, I'll now try to understand if the raw information is structured (like JSON). If it is, I'll keep it in that structured format. Otherwise, I'll keep the raw text. This makes sure I'm working with the most accurate version of the information.
If I've decided to skip summarizing after a particular step, I'll now take the direct output from that step, make sure it's in a consistent format, and treat that as the final result for that part of my process. This avoids any extra summarization that isn't needed.
I've made sure that any structured data I work with is correctly prepared before I use it.
I've added a new way to check that this all works correctly, especially in more complex situations where I might be breaking down a task into smaller pieces. While developing this check, I also made some small adjustments to ensure everything runs smoothly.
I've also manually verified that these changes work as expected in a real-world scenario.
These improvements mean that when I decide not to summarize something, you can be confident that the original, detailed information is preserved and used correctly throughout my process.
Note: This is to test if Jules Agent works or not.