Package org.mockserver.client
Class Llm
- java.lang.Object
-
- org.mockserver.client.Llm
-
public final class Llm extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Completioncompletion()Creates a new Completion builder.static LlmConversationBuilderconversation()Creates a new LlmConversationBuilder.static IsolationSourcecookie(String name)Creates an IsolationSource that reads the isolation key from a cookie.static EmbeddingResponseembedding()Creates a new EmbeddingResponse builder.static IsolationSourceheader(String name)Creates an IsolationSource that reads the isolation key from an HTTP header.static UsageinputTokens(int inputTokens)Creates a Usage with the given input tokens.static StreamingPhysicsjitter(double jitter)Creates a StreamingPhysics with the given jitter.static UsageoutputTokens(int outputTokens)Creates a Usage with the given output tokens.static IsolationSourcequeryParameter(String name)Creates an IsolationSource that reads the isolation key from a query parameter.static StreamingPhysicsstreamingPhysics()Creates a new StreamingPhysics builder.static DelaytimeToFirstToken(long value, TimeUnit timeUnit)Creates a Delay representing the time to first token.static StreamingPhysicstokensPerSecond(int tokensPerSecond)Creates a StreamingPhysics with the given tokens per second.static ToolUsetoolUse(String name)Creates a new ToolUse builder.
-
-
-
Method Detail
-
completion
public static Completion completion()
Creates a new Completion builder.
-
inputTokens
public static Usage inputTokens(int inputTokens)
Creates a Usage with the given input tokens.
-
outputTokens
public static Usage outputTokens(int outputTokens)
Creates a Usage with the given output tokens.
-
streamingPhysics
public static StreamingPhysics streamingPhysics()
Creates a new StreamingPhysics builder.
-
timeToFirstToken
public static Delay timeToFirstToken(long value, TimeUnit timeUnit)
Creates a Delay representing the time to first token.
-
tokensPerSecond
public static StreamingPhysics tokensPerSecond(int tokensPerSecond)
Creates a StreamingPhysics with the given tokens per second.
-
jitter
public static StreamingPhysics jitter(double jitter)
Creates a StreamingPhysics with the given jitter.
-
embedding
public static EmbeddingResponse embedding()
Creates a new EmbeddingResponse builder.
-
header
public static IsolationSource header(String name)
Creates an IsolationSource that reads the isolation key from an HTTP header.
-
queryParameter
public static IsolationSource queryParameter(String name)
Creates an IsolationSource that reads the isolation key from a query parameter.
-
cookie
public static IsolationSource cookie(String name)
Creates an IsolationSource that reads the isolation key from a cookie.
-
conversation
public static LlmConversationBuilder conversation()
Creates a new LlmConversationBuilder.
-
-