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.
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.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationIdResolverThe property-driven default.resolve()Resolves the conversation for the current call.
-
Method Details
-
resolve
-
of
The property-driven default.- Parameters:
mode- the configured mode- Returns:
- the resolver
-