Skip to content

compact tool declares focus parameter but never uses it #250

@Yixiang-Wu

Description

@Yixiang-Wu

In s06_context_compact.py, the compact tool schema declares a focus parameter (line 197):

"focus": {"type": "string", "description": "What to preserve in the summary"}

However, this parameter is never consumed:

  1. Tool handler (line 184) ignores all kwargs: lambda **kw: "Manual compression requested."
  2. auto_compact function (line 103) doesn't accept a focus argument
  3. Summarization prompt (lines 116-118) is hardcoded, no focus injection
  4. Manual compact trigger (line 236) calls auto_compact(messages) without passing focus

This means the LLM can provide a focus value (e.g. focus="preserve database discussion"), but it has no effect on the summarization output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions