spring-projects / spring-projects/spring-ai
Access all conversation IDs through the `ChatMemory` interface
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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