Package org.mockserver.model
Class HttpLlmResponse
java.lang.Object
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetChaos()Returns the conversation matcher for evaluation.getModel()getType()inthashCode()static HttpLlmResponsewithChaos(LlmChaosProfile chaos) Optional fault/chaos profile applied when returning this response — probabilistic errors, mid-stream truncation, malformed SSE.withCompletion(Completion completion) withConversationMatcher(LlmConversationMatcher conversationMatcher) withConversationPredicates(ConversationPredicates conversationPredicates) withEmbedding(EmbeddingResponse embedding) withProvider(Provider provider) Methods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimaryMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
HttpLlmResponse
public HttpLlmResponse()
-
-
Method Details
-
llmResponse
-
withProvider
-
getProvider
-
withModel
-
getModel
-
withCompletion
-
getCompletion
-
withEmbedding
-
getEmbedding
-
withConversationPredicates
-
getConversationPredicates
-
withChaos
Optional fault/chaos profile applied when returning this response — probabilistic errors, mid-stream truncation, malformed SSE. -
getChaos
-
withConversationMatcher
-
getConversationMatcher
Returns the conversation matcher for evaluation. If not explicitly set, lazily reconstructs it fromconversationPredicates(which survives JSON round-tripping). Returns null if neither is set. -
getType
- Specified by:
getTypein classAction<HttpLlmResponse>
-
equals
- Overrides:
equalsin classAction<HttpLlmResponse>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAction<HttpLlmResponse>
-