Package org.mockserver.llm
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. UseLlmConversationBuilderto generate properly-formed scenario names.
-
-
Field Summary
Fields Modifier and Type Field Description static StringISOLATION_MARKER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbaseScenarioName(String scenarioName)Extract the base scenario name (without isolation marker suffix) from a full scenario name.static IsolationSourcedecodeIsolationSource(String scenarioName)Decode the isolation source from a scenario name that contains the isolation marker.
-
-
-
Field Detail
-
ISOLATION_MARKER
public static final String ISOLATION_MARKER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-