java.lang.Object
org.mockserver.client.Llm
Convenience re-exports of LLM model-class static factories so that
users can write a single import:
import static org.mockserver.client.Llm.*;and get all LLM-related factories in one import.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.mockserver.model.CompletionCreates a new Completion builder.static LlmConversationBuilderCreates a new LlmConversationBuilder.static org.mockserver.llm.IsolationSourceCreates an IsolationSource that reads the isolation key from a cookie.static org.mockserver.model.EmbeddingResponseCreates a new EmbeddingResponse builder.static org.mockserver.llm.IsolationSourceCreates an IsolationSource that reads the isolation key from an HTTP header.static org.mockserver.model.UsageinputTokens(int inputTokens) Creates a Usage with the given input tokens.static org.mockserver.model.StreamingPhysicsjitter(double jitter) Creates a StreamingPhysics with the given jitter.static org.mockserver.model.UsageoutputTokens(int outputTokens) Creates a Usage with the given output tokens.static org.mockserver.llm.IsolationSourcequeryParameter(String name) Creates an IsolationSource that reads the isolation key from a query parameter.static org.mockserver.model.StreamingPhysicsCreates a new StreamingPhysics builder.static org.mockserver.model.DelaytimeToFirstToken(long value, TimeUnit timeUnit) Creates a Delay representing the time to first token.static org.mockserver.model.StreamingPhysicstokensPerSecond(int tokensPerSecond) Creates a StreamingPhysics with the given tokens per second.static org.mockserver.model.ToolUseCreates a new ToolUse builder.
-
Method Details
-
completion
public static org.mockserver.model.Completion completion()Creates a new Completion builder. -
toolUse
Creates a new ToolUse builder. -
inputTokens
public static org.mockserver.model.Usage inputTokens(int inputTokens) Creates a Usage with the given input tokens. -
outputTokens
public static org.mockserver.model.Usage outputTokens(int outputTokens) Creates a Usage with the given output tokens. -
streamingPhysics
public static org.mockserver.model.StreamingPhysics streamingPhysics()Creates a new StreamingPhysics builder. -
timeToFirstToken
Creates a Delay representing the time to first token. -
tokensPerSecond
public static org.mockserver.model.StreamingPhysics tokensPerSecond(int tokensPerSecond) Creates a StreamingPhysics with the given tokens per second. -
jitter
public static org.mockserver.model.StreamingPhysics jitter(double jitter) Creates a StreamingPhysics with the given jitter. -
embedding
public static org.mockserver.model.EmbeddingResponse embedding()Creates a new EmbeddingResponse builder. -
header
Creates an IsolationSource that reads the isolation key from an HTTP header. -
queryParameter
Creates an IsolationSource that reads the isolation key from a query parameter. -
cookie
Creates an IsolationSource that reads the isolation key from a cookie. -
conversation
Creates a new LlmConversationBuilder.
-