LearnNewsExamplesServices
Frontmatter
id7972
titleRefactor Assembler Configs: Make Counts Configurable
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtDec 1, 2025, 6:03 PM
updatedAtDec 1, 2025, 6:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/7972
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 1, 2025, 6:13 PM

Refactor Assembler Configs: Make Counts Configurable

Closed v11.14.0 enhancementairefactoring
tobiu
tobiu commented on Dec 1, 2025, 6:03 PM

Goal: Replace hardcoded constants in Neo.ai.context.Assembler with configurable properties.

Scope:

  1. Add contextCount (default 5) to static config.
  2. Add recentCount (default 10) to static config.
  3. Update formatHistory to use these instance configurations instead of hardcoded variables.

Context: Code review feedback on Issue #7970.

Success Criteria:

  • contextCount and recentCount are configurable via Neo.create.
  • formatHistory logic uses the new configs.
  • Tests pass.

Dependencies: None.

tobiu added the enhancement label on Dec 1, 2025, 6:04 PM
tobiu added the ai label on Dec 1, 2025, 6:04 PM
tobiu added the refactoring label on Dec 1, 2025, 6:04 PM
tobiu
tobiu Dec 1, 2025, 6:05 PM

Input from Gemini 2.5:

✦ I have refactored Assembler.mjs to use contextCount and recentCount configs. See ai/context/Assembler.mjs.

tobiu
tobiu Dec 1, 2025, 6:12 PM

Input from Gemini 2.5:

✦ Closing as completed (implemented in previous turns).

tobiu closed this issue on Dec 1, 2025, 6:13 PM
tobiu assigned to @tobiu on Dec 1, 2025, 6:13 PM