-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add loading from toml for condensers #6974
base: main
Are you sure you want to change the base?
Conversation
@OpenHands Read all the review comment threads on this PR using GitHub API or graphQL. Take a look at the config module and make sure you understand the similitudes and differences. Take a look at the unit tests for config, to understand the expected behavior. Then lets fix the review thread comments. We will need to unit test every behavior here. Condenser config in toml is new, and so it doesn't have tests yet. I prefer config tests to be in test_config with the others, but make sure they all have condenser in their name. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…m sections handling
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
(openhands-ai) The issue was that when a condenser config specified an LLM reference that didn't exist, we were not properly creating a default LLMConfig, which caused the test to fail because it expected a LLMSummarizingCondenserConfig but got a NoOpCondenserConfig instead. All tests are now passing. |
(openhands-ai)
This approach would be more consistent with how agents handle LLM configs and would simplify the implementation. |
…nsistency with other config modules
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
(openhands-ai) I have also updated the tests to verify that the condenser configuration is correctly assigned to the default agent configuration. The comment "We don't have a direct way to access the condenser config from AppConfig" has been updated to reflect this change. |
@enyst Looks like all the functionality is there and the tests are passing, is this ready for a review? |
@csmith49 Just testing locally! Last night I played with Sonnet 3.7 and we figured out some things, but I also felt I don't know exactly how we want it all to behave, so I was going to ask you about it. Remarks:
|
I took a look through the unit tests and they all seem to capture the least-surprising behavior wrt fallbacks and assignments. If they're passing I'd say the description is accurate and the fallbacks work like we want them to.
That shouldn't be happening, the only thing modifying |
I'm trying to replicate that strange issue, it doesn't happen right after the summarizing condenser, but I see two things:
|
OK I sort of got it: my session was missing event 1 (file 1.json in the local file store), for a reason I can't tell. So when restoring the session, it was restoring only event 0 from 55 events, adding the default message, so 2 events in Back to this PR: looks good to me, I am also testing more configurations. |
I'd note: I did have some second thoughts on not implementing custom sections, e.g behavior like
Not possible now, just a If you feel that would be useful, we can do it, whether here or in a follow-up. |
End-user friendly description of the problem this fixes or functionality that this introduces.
Give a summary of what the PR does, explaining any non-trivial design decisions.
Link of any specific issues this addresses.
To run this PR locally, use the following command: