Uses of Record Class
org.mockserver.llm.client.LlmBackend
Packages that use LlmBackend
Package
Description
-
Uses of LlmBackend in org.mockserver.llm.client
Methods in org.mockserver.llm.client that return LlmBackendModifier and TypeMethodDescriptionstatic LlmBackendConvenience for the common case: a provider type and an API key, all other fields defaulted.Methods in org.mockserver.llm.client that return types with arguments of type LlmBackendModifier and TypeMethodDescriptionLlmBackendResolver.namedBackends()All named backends from the layer-3 JSON file, keyed by name.LlmBackendResolver.resolveByName(String name) Resolve a named backend from the layer-3 JSON file.LlmBackendResolver.resolveDefault()Resolve the default backend: explicit MockServer properties (layer 2) if a provider is configured, otherwise an env-detected backend (layer 1), otherwise empty.Methods in org.mockserver.llm.client with parameters of type LlmBackendModifier and TypeMethodDescriptionAnthropicLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) AzureOpenAiLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) BedrockLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) GeminiLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) LlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) Build the outbound completion request (URL path, auth headers, request body) for the given backend and prompt.OllamaLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) OpenAiLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) OpenAiResponsesLlmClient.buildCompletionRequest(LlmBackend backend, ParsedConversation prompt) LlmCompletionService.complete(LlmBackend backend, ParsedConversation prompt) Complete the given prompt against the backend, orOptional.empty()if no client is registered for the provider or the call fails for any reason (fail-closed).protected HttpRequestAbstractLlmClient.postJson(LlmBackend backend, String baseUrl, String path, String jsonBody) Build a POST request tobaseUrl + path, parsing the URL into host, port, and scheme so the transport can route it.protected StringAbstractLlmClient.resolveBaseUrl(LlmBackend backend, String defaultBaseUrl) Resolve the effective base URL: the backend's value if set, else the provider default.protected StringAbstractLlmClient.resolveModel(LlmBackend backend, String defaultModel) Resolve the effective model: the backend's value if set, else the provider default. -
Uses of LlmBackend in org.mockserver.llm.drift
Methods in org.mockserver.llm.drift with parameters of type LlmBackendModifier and TypeMethodDescriptionDriftDetector.detect(List<DriftDetector.RecordedExchange> exchanges, Provider provider, LlmBackend backend) Replay each recorded exchange againstbackendand diff the live response shape against the recorded one. -
Uses of LlmBackend in org.mockserver.llm.semantic
Constructors in org.mockserver.llm.semantic with parameters of type LlmBackendModifierConstructorDescriptionSemanticPromptMatcher(LlmCompletionService service, LlmBackend backend) -
Uses of LlmBackend in org.mockserver.mock
Methods in org.mockserver.mock with parameters of type LlmBackendModifier and TypeMethodDescriptionvoidHttpState.setLlmCompletionService(LlmCompletionService llmCompletionService, LlmBackend llmBackend) Install the LLM completion service and default backend for runtime features that call out to an LLM (e.g. -
Uses of LlmBackend in org.mockserver.mock.drift
Constructors in org.mockserver.mock.drift with parameters of type LlmBackendModifierConstructorDescriptionSemanticDriftExtension(LlmCompletionService completionService, LlmBackend backend)