spring-projects / spring-projects/spring-ai

Access all conversation IDs through the `ChatMemory` interface

Open
#4,433 1 comment 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

Although this is possible through memory storage, I’m wondering if it would be possible to add a method to access all entry IDs (i.e., all conversation IDs) directly through the ChatMemory interface, to avoid injecting a ChatMemoryRepository

For example, in a RestController, I would have expected to be able to do the following:

private final ChatMemory chatMemory;

@GetMapping("/conversations")
public List<String> getConversations() {
    ResponseEntity.ok().body(chatMemory.getConversationIds());
}

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

Start by reading the ChatMemory interface and the ChatMemoryRepository boundary mentioned in the issue, then inspect how conversation IDs are currently obtained through memory storage. Confirm which ChatMemory implementations and tests are affected; done means the interface exposes conversation IDs without requiring repository injection and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.