Package dev.dokimos.core.conversation
Interface SimulatedUser
- All Known Implementing Classes:
LLMSimulatedUser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for simulating user behavior in multi-turn
conversations.
A simulated user generates contextually appropriate messages based on the current conversation trajectory. Implementations can use LLMs, scripted responses, or any other strategy to produce realistic user interactions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongenerateMessage(ConversationTrajectory trajectory) Generates the next user message based on the current conversation state.
-
Method Details
-
generateMessage
Generates the next user message based on the current conversation state.The implementation should analyze the trajectory to understand context and generate an appropriate response that advances the conversation in a realistic manner.
- Parameters:
trajectory- the current conversation trajectory- Returns:
- the next user message
-