Uses of Class
org.mockserver.llm.ParsedConversation
Packages that use ParsedConversation
Package
Description
-
Uses of ParsedConversation in org.mockserver.llm
Methods in org.mockserver.llm that return ParsedConversationModifier and TypeMethodDescriptiondefault ParsedConversationProviderCodec.decode(HttpRequest request) static ParsedConversationParsedConversation.empty()OpenAiResponsesStore.StoredResponse.getConversation()The full conversation (prior chained turns + this turn's input + this turn's assistant output).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).voidOpenAiResponsesStore.recordIfStored(String requestBody, ParsedConversation chainedConversation, Completion completion, String encodedBody) Record the response just issued for aPOST /v1/responsesturn so it can be chained (viaprevious_response_id) or retrieved (viaGET /v1/responses/{id}).Constructors in org.mockserver.llm with parameters of type ParsedConversationModifierConstructorDescriptionStoredResponse(String id, ParsedConversation conversation, String responseBodyJson) -
Uses of ParsedConversation in org.mockserver.llm.analysis
Methods in org.mockserver.llm.analysis that return ParsedConversationModifier and TypeMethodDescriptionAgentRunAnalyzer.canonicalConversation(List<HttpRequest> requests, Provider provider) Decode each request and return the conversation with the most messages — the richest/latest snapshot of the dialogue. -
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) OpenAiCompatibleChatCodec.decode(HttpRequest request) OpenAiResponsesCodec.decode(HttpRequest request)