Class LlmScenarioNames

java.lang.Object
org.mockserver.llm.LlmScenarioNames

public final class LlmScenarioNames extends Object
Utility for encoding and decoding LLM conversation isolation metadata in scenario names. The format is:
 __llm_conv_<uuid>__iso=<kind>:<name>
 
where the __iso= suffix is optional. Without it, the scenario uses legacy single-key behaviour.

Scenario names with the __llm_conv_ prefix are reserved by the LLM mocking framework; users must not create scenarios with this prefix directly. Use LlmConversationBuilder to generate properly-formed scenario names.

  • Field Details

  • Method Details

    • decodeIsolationSource

      public static IsolationSource decodeIsolationSource(String scenarioName)
      Decode the isolation source from a scenario name that contains the isolation marker.
      Parameters:
      scenarioName - the scenario name to decode
      Returns:
      the decoded IsolationSource, or null if no isolation marker is present
    • baseScenarioName

      public static String baseScenarioName(String scenarioName)
      Extract the base scenario name (without isolation marker suffix) from a full scenario name.
      Parameters:
      scenarioName - the full scenario name
      Returns:
      the base scenario name