Package org.mockserver.llm
Class LlmScenarioNames
java.lang.Object
org.mockserver.llm.LlmScenarioNames
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
ISOLATION_MARKER
- See Also:
-
-
Method Details
-
decodeIsolationSource
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
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
-