-
Notifications
You must be signed in to change notification settings - Fork 156
feat(condenser): Token-aware condensation in LLMSummarizingCondenser #1380
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
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
ea026aa
token-aware utils, first pass
4093731
tests and type fixes for token-aware utils
980c1af
condenser api now takes agent llm
0d2b16d
trigger condensation w/ token limits
d3d875e
minor refactor of llm summarizing condenser
7504dba
one last refactor
753d088
resolution of multiple condensation reasons at once
226b488
updating tests
81b5590
events_from_tail calculation fix
cf710cd
fixing aggressive condensation logic
de66479
tests for combos of reasons
3bafbec
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 16a5be5
linting
bc63019
minor formatting errors
4bba5fd
ignoring unknown attributes in tests
119e868
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 093eeb9
fixing type hints with overloaded prepare_llm_messages
e5518b5
removing TYPE_CHECKING flags
acc15c8
fix: correct import name in test_resolve_model_config.py
openhands-agent 011b50f
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 4a1fc71
Update openhands-sdk/openhands/sdk/context/condenser/utils.py
csmith49 6fb0b8f
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 55e5b0e
llm -> summarizing_llm (and linting pass)
44dd213
fix failing cross tests -- updating the string ref to llm -> summariz…
fd27c75
Revert "fix failing cross tests -- updating the string ref to llm -> …
d63d40f
Revert "llm -> summarizing_llm (and linting pass)"
3c6aebe
condenser api changes: llm -> agent_llm
8869dd0
linting
2145e0e
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 f3d1e4f
fixing tests
aa5d9c6
condenser property in integration test scaffold
fb7644e
update integration base with max iterations
3b013f1
token counting integration test
fe083cd
linting
0b226c7
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 d698399
fixing import
7249b12
upping cap for tokens
bdd0a78
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 1180c9d
one last change to max tokens
e337ae6
minor indexing bug
15ae1a6
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 301232e
minor prompt tweak
23d154d
Merge branch 'main' into csmith49/token-aware-condensation
csmith49 e73b00f
minor prompt tweak to get gpt and devstral to actually do their job
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
Some comments aren't visible on the classic Files Changed page.
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
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
Oops, something went wrong.
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.