Package org.mockserver.model
Class HttpLlmResponse
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Action<HttpLlmResponse>
-
- org.mockserver.model.HttpLlmResponse
-
public class HttpLlmResponse extends Action<HttpLlmResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type
-
-
Constructor Summary
Constructors Constructor Description HttpLlmResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CompletiongetCompletion()LlmConversationMatchergetConversationMatcher()Returns the conversation matcher for evaluation.ConversationPredicatesgetConversationPredicates()EmbeddingResponsegetEmbedding()StringgetModel()ProvidergetProvider()Action.TypegetType()inthashCode()static HttpLlmResponsellmResponse()HttpLlmResponsewithCompletion(Completion completion)HttpLlmResponsewithConversationMatcher(LlmConversationMatcher conversationMatcher)HttpLlmResponsewithConversationPredicates(ConversationPredicates conversationPredicates)HttpLlmResponsewithEmbedding(EmbeddingResponse embedding)HttpLlmResponsewithModel(String model)HttpLlmResponsewithProvider(Provider provider)-
Methods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimary
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Method Detail
-
llmResponse
public static HttpLlmResponse llmResponse()
-
withProvider
public HttpLlmResponse withProvider(Provider provider)
-
getProvider
public Provider getProvider()
-
withModel
public HttpLlmResponse withModel(String model)
-
getModel
public String getModel()
-
withCompletion
public HttpLlmResponse withCompletion(Completion completion)
-
getCompletion
public Completion getCompletion()
-
withEmbedding
public HttpLlmResponse withEmbedding(EmbeddingResponse embedding)
-
getEmbedding
public EmbeddingResponse getEmbedding()
-
withConversationPredicates
public HttpLlmResponse withConversationPredicates(ConversationPredicates conversationPredicates)
-
getConversationPredicates
public ConversationPredicates getConversationPredicates()
-
withConversationMatcher
public HttpLlmResponse withConversationMatcher(LlmConversationMatcher conversationMatcher)
-
getConversationMatcher
public LlmConversationMatcher 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
public Action.Type getType()
- Specified by:
getTypein classAction<HttpLlmResponse>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAction<HttpLlmResponse>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAction<HttpLlmResponse>
-
-