Package org.mockserver.model
Class ConversationPredicates
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.ConversationPredicates
-
public class ConversationPredicates extends ObjectWithJsonToString
Serialisable predicate descriptors for LLM conversation matching. UnlikeLlmConversationMatcher(which is an evaluation-time object), this class carries only the data needed to describe predicates and survives JSON round-tripping through the MockServer HTTP API.All fields are optional; only non-null fields are emitted in JSON.
-
-
Constructor Summary
Constructors Constructor Description ConversationPredicates()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationPredicatesconversationPredicates()booleanequals(Object o)StringgetContainsToolResultFor()StringgetLatestMessageContains()StringgetLatestMessageMatches()ParsedMessage.RolegetLatestMessageRole()IntegergetTurnIndex()booleanhasAnyPredicate()Returns true if at least one predicate field is set.inthashCode()ConversationPredicateswithContainsToolResultFor(String containsToolResultFor)ConversationPredicateswithLatestMessageContains(String latestMessageContains)ConversationPredicateswithLatestMessageMatches(String latestMessageMatches)ConversationPredicateswithLatestMessageRole(ParsedMessage.Role latestMessageRole)ConversationPredicateswithTurnIndex(Integer turnIndex)-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Method Detail
-
conversationPredicates
public static ConversationPredicates conversationPredicates()
-
withTurnIndex
public ConversationPredicates withTurnIndex(Integer turnIndex)
-
getTurnIndex
public Integer getTurnIndex()
-
withLatestMessageContains
public ConversationPredicates withLatestMessageContains(String latestMessageContains)
-
getLatestMessageContains
public String getLatestMessageContains()
-
withLatestMessageMatches
public ConversationPredicates withLatestMessageMatches(String latestMessageMatches)
-
getLatestMessageMatches
public String getLatestMessageMatches()
-
withLatestMessageRole
public ConversationPredicates withLatestMessageRole(ParsedMessage.Role latestMessageRole)
-
getLatestMessageRole
public ParsedMessage.Role getLatestMessageRole()
-
withContainsToolResultFor
public ConversationPredicates withContainsToolResultFor(String containsToolResultFor)
-
getContainsToolResultFor
public String getContainsToolResultFor()
-
hasAnyPredicate
public boolean hasAnyPredicate()
Returns true if at least one predicate field is set.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-