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

    Modifier and Type
    Method
    Description
    static org.mockserver.model.Completion
    Creates a new Completion builder.
    Creates a new LlmConversationBuilder.
    static org.mockserver.llm.IsolationSource
    cookie(String name)
    Creates an IsolationSource that reads the isolation key from a cookie.
    static org.mockserver.model.EmbeddingResponse
    Creates a new EmbeddingResponse builder.
    static org.mockserver.llm.IsolationSource
    header(String name)
    Creates an IsolationSource that reads the isolation key from an HTTP header.
    static org.mockserver.model.Usage
    inputTokens(int inputTokens)
    Creates a Usage with the given input tokens.
    static org.mockserver.model.StreamingPhysics
    jitter(double jitter)
    Creates a StreamingPhysics with the given jitter.
    static org.mockserver.model.Usage
    outputTokens(int outputTokens)
    Creates a Usage with the given output tokens.
    static org.mockserver.llm.IsolationSource
    Creates an IsolationSource that reads the isolation key from a query parameter.
    static org.mockserver.model.StreamingPhysics
    Creates a new StreamingPhysics builder.
    static org.mockserver.model.Delay
    timeToFirstToken(long value, TimeUnit timeUnit)
    Creates a Delay representing the time to first token.
    static org.mockserver.model.StreamingPhysics
    tokensPerSecond(int tokensPerSecond)
    Creates a StreamingPhysics with the given tokens per second.
    static org.mockserver.model.ToolUse
    Creates a new ToolUse builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • completion

      public static org.mockserver.model.Completion completion()
      Creates a new Completion builder.
    • toolUse

      public static org.mockserver.model.ToolUse toolUse(String name)
      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

      public static org.mockserver.model.Delay timeToFirstToken(long value, TimeUnit timeUnit)
      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

      public static org.mockserver.llm.IsolationSource header(String name)
      Creates an IsolationSource that reads the isolation key from an HTTP header.
    • queryParameter

      public static org.mockserver.llm.IsolationSource queryParameter(String name)
      Creates an IsolationSource that reads the isolation key from a query parameter.
    • cookie

      public static org.mockserver.llm.IsolationSource cookie(String name)
      Creates an IsolationSource that reads the isolation key from a cookie.
    • conversation

      public static LlmConversationBuilder conversation()
      Creates a new LlmConversationBuilder.