Interface ConversationIdResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConversationIdResolver
Chooses the conversation a model call belongs to when the caller names none. The default follows agentspaces.springai.memory.conversation-id: take keys by the task's entry ID, so a task that reappears after a crash resumes with the first worker's conversation; agent keys by the bound agent, one long-running memory per agent; explicit never chooses. Declare a bean of this type to key by tenant, user, or session.