Package org.mockserver.llm.analysis
package org.mockserver.llm.analysis
-
ClassDescriptionDeterministic, read-only analysis of an agent run reconstructed from recorded LLM requests.The correlated call graph of an agent run.A directed edge in the agent-run call graph.A node in the agent-run call graph.Structural summary of an agent run (for
explain_agent_run).A single tool call the assistant made.Result of averify_tool_call-style inspection.Renders anLlmOptimisationReportto a copy-paste Markdown "optimisation brief" — bundle (A) of the LLM optimisation export feature.Structured, deterministic optimisation report for a captured LLM session (the JSON bundle "B" of the LLM optimisation export feature).One captured LLM call (request/response exchange).A structured, copy-paste-friendly remediation for aLlmOptimisationReport.Signal.How the captured traffic was grouped into one report.What redaction was applied before the report/brief was produced.Identity and scope of the session this report covers.A deterministic optimisation lead.A single assistant tool call observed in a call.Aggregated counts across every included call.A deterministic, in-product verdict — A–F grade plus the recoverable-spend headline.Builds a deterministicLlmOptimisationReportfrom captured LLMFORWARDED_REQUESTexchanges.A transport-agnostic captured exchange: the forwarded request, the upstream response, and the request timestamp in epoch millis (ornullwhen unknown).Application service that turns capturedREQUEST_RESPONSESlog entries into anLlmOptimisationReport(JSON bundle) or a rendered Markdown brief, applying the optionalsession/host/providerfilters, redaction, and themockserver.llmOptimisationMaxCallsbound.Optional filters; null/blank means "no filter".The built report plus the markdown brief, so callers render once.Deterministic optimisation-signal detectors over the assembled calls of anLlmOptimisationReport.