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.

@FunctionalInterface public interface SimulatedUser
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 Type
    Method
    Description
    Generates the next user message based on the current conversation state.
  • Method Details

    • generateMessage

      Message generateMessage(ConversationTrajectory trajectory)
      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