Uses of Class
org.mockserver.client.TurnBuilder
Packages that use TurnBuilder
-
Uses of TurnBuilder in org.mockserver.client
Methods in org.mockserver.client that return TurnBuilderModifier and TypeMethodDescriptionTurnBuilder.respondingWith(Completion completion) Set the completion to return for this turn.LlmConversationBuilder.turn()Start defining a new turn in the conversation.TurnBuilder.whenContainsToolResultFor(String toolName) Match when the conversation contains a tool result for a prior call of the named tool.TurnBuilder.whenLatestMessageContains(String text) Match when the latest message's text content contains the given substring.TurnBuilder.whenLatestMessageContains(Pattern regex) Deprecated.misleading name — this overload matches by regex, not substring.TurnBuilder.whenLatestMessageMatches(Pattern regex) Match when the latest message's text content matches the given regex.TurnBuilder.whenLatestMessageRole(ParsedMessage.Role role) Match when the latest message has the given role.TurnBuilder.whenSemanticMatch(String expectedMeaning) Opt-in fuzzy semantic match: match when the latest message expresses the given intent, judged by a runtime LLM.TurnBuilder.whenTurnIndex(int n) Match when the conversation has exactlynassistant turns.TurnBuilder.withChaos(LlmChaosProfile chaos) Apply a fault/chaos profile to this turn's response (probabilistic errors, mid-stream truncation, malformed SSE) for resilience testing.TurnBuilder.withNormalization(NormalizationOptions normalization) Apply opt-in prompt normalisation before thewhenLatestMessage…text predicates are evaluated, so cosmetic differences (whitespace, JSON key ordering, volatile ids/timestamps) do not block a match.