Uses of Class
org.mockserver.llm.ParsedConversation
Packages that use ParsedConversation
-
Uses of ParsedConversation in org.mockserver.llm
Methods in org.mockserver.llm that return ParsedConversationModifier and TypeMethodDescriptiondefault ParsedConversationProviderCodec.decode(HttpRequest request) static ParsedConversationParsedConversation.empty()static ParsedConversationParsedConversation.of(List<ParsedMessage> messages) Methods in org.mockserver.llm with parameters of type ParsedConversationModifier and TypeMethodDescriptionstatic intTokenCounter.estimatePromptTokens(ParsedConversation conversation) Estimate the approximate prompt (input) token count for a decoded conversation: the sum of the per-message text estimates plus a small fixed per-message overhead (real chat formats wrap each message in role markers / delimiters that cost a few tokens). -
Uses of ParsedConversation in org.mockserver.llm.client
Methods in org.mockserver.llm.client with parameters of type ParsedConversationModifier and TypeMethodDescriptionprotected voidAbstractLlmClient.appendRoleContentMessages(com.fasterxml.jackson.databind.node.ArrayNode messagesArray, ParsedConversation prompt, String systemRole, String userRole, String assistantRole, String toolRole) Append the conversation's messages tomessagesArrayas{role, content}objects using the given role names.AnthropicLlmClient.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). -
Uses of ParsedConversation in org.mockserver.llm.codec
Methods in org.mockserver.llm.codec that return ParsedConversationModifier and TypeMethodDescriptionAnthropicCodec.decode(HttpRequest request) AzureOpenAiCodec.decode(HttpRequest request) BedrockCodec.decode(HttpRequest request) GeminiCodec.decode(HttpRequest request) OllamaCodec.decode(HttpRequest request) OpenAiChatCompletionsCodec.decode(HttpRequest request) OpenAiResponsesCodec.decode(HttpRequest request)