Package org.mockserver.llm.analysis
Class LlmOptimisationReport
java.lang.Object
org.mockserver.llm.analysis.LlmOptimisationReport
Structured, deterministic optimisation report for a captured LLM session
(the JSON bundle "B" of the LLM optimisation export feature). Built by
LlmOptimisationReportBuilder from captured FORWARDED_REQUEST
exchanges and rendered to a copy-paste Markdown brief by
LlmOptimisationBriefRenderer.
Pure data — no behaviour, no network, no LLM. Serialised to JSON by the control-plane endpoint / MCP tool. Field names and nesting are the FROZEN contract; do not rename without updating the UI and docs streams.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOne captured LLM call (request/response exchange).static classA structured, copy-paste-friendly remediation for aLlmOptimisationReport.Signal.static enumHow the captured traffic was grouped into one report.static classWhat redaction was applied before the report/brief was produced.static classIdentity and scope of the session this report covers.static classA deterministic optimisation lead.static classA single assistant tool call observed in a call.static classAggregated counts across every included call.static classA deterministic, in-product verdict — A–F grade plus the recoverable-spend headline. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBumped if the JSON shape changes incompatibly. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCalls()intsetCalls(List<LlmOptimisationReport.Call> calls) setGeneratedBy(String generatedBy) setRedaction(LlmOptimisationReport.Redaction redaction) setSchemaVersion(int schemaVersion) setSession(LlmOptimisationReport.Session session) setSignals(List<LlmOptimisationReport.Signal> signals) setVerdict(LlmOptimisationReport.Verdict verdict)
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSIONBumped if the JSON shape changes incompatibly.- See Also:
-
-
Constructor Details
-
LlmOptimisationReport
public LlmOptimisationReport()
-
-
Method Details
-
getSchemaVersion
public int getSchemaVersion() -
setSchemaVersion
-
getGeneratedBy
-
setGeneratedBy
-
getSession
-
setSession
-
getTotals
-
setTotals
-
getCalls
-
setCalls
-
getSignals
-
setSignals
-
getRedaction
-
setRedaction
-
getVerdict
-
setVerdict
-