spring-projects / spring-projects/spring-ai

PromptChatMemoryAdvisor.before code contains strange comment

Open
#5,359 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Within version 1.1.2 of Spring AI PromptChatMemoryAdvisor.before line 133 there is the following comment:

		// 5. Add all user messages from the current prompt to memory (after system
		// message is generated)

but there is no actual code. I think this comment can be removed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open PromptChatMemoryAdvisor.before in Spring AI 1.1.2 and inspect line 133 with the surrounding memory-update logic. Remove the comment if it documents no operation, then confirm the method is unchanged apart from that cleanup and run the relevant project checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
ai
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.