Skip to content

Access all conversation IDs through the ChatMemory interface #4433

@loicgreffier

Description

@loicgreffier

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());
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions