Skip to content
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

feature: Condenser Interface and Defaults #5306

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Nov 26, 2024

  1. refactor: Implement condenser configuration system

    - Add abstract Condenser base class
    - Add NoopCondenser, RecentEventsCondenser, and LLMCondenser implementations
    - Add configuration system using pydantic models
    - Make NoopCondenser the default
    - Add comprehensive unit tests
    openhands-agent committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    d35a06e View commit details
    Browse the repository at this point in the history
  2. Fix condenser config and event creation issues

    - Replace const parameter with Literal type in condenser configs
    - Update from_config to check type field directly
    - Fix Event creation in LLMCondenser to use direct attribute assignment
    - Update memory module imports
    openhands-agent committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    c6bc242 View commit details
    Browse the repository at this point in the history
  3. refactor: Move condenser config to core/config and improve env var ha…

    …ndling
    
    - Move condenser_config.py from memory/ to core/config/
    - Rename AgentConfig.condenser_config to condenser
    - Add proper handling of Pydantic models in env var loading
    - Add test for condenser config loading
    - Add example of LLM condenser config in config.toml
    openhands-agent committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    d0bc171 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. fixing up unit tests and type hints

    Calvin Smith committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    8b9b52d View commit details
    Browse the repository at this point in the history
  2. restoring utils file

    Calvin Smith committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    10d5fc6 View commit details
    Browse the repository at this point in the history
  3. splitting failing config unit tests

    Calvin Smith committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    6489787 View commit details
    Browse the repository at this point in the history
  4. removing TOML-setting of condensers

    Calvin Smith committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    3f4af37 View commit details
    Browse the repository at this point in the history