Package org.mockserver.llm.analysis
Class LlmOptimisationReport.Call
java.lang.Object
org.mockserver.llm.analysis.LlmOptimisationReport.Call
- Enclosing class:
- LlmOptimisationReport
One captured LLM call (request/response exchange).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongdoubleintgetIndex()longlongintgetModel()longgetPath()longlongbooleanTrue when the cost was derived from an admitted-placeholder/approximate rate (e.g.booleanbooleanTrue when the model could not be priced (unknown/unrecognised id, e.g. an Azure deployment name).setApproximateRate(boolean approximateRate) setCachedInputTokens(long cachedInputTokens) setCostIsEstimated(boolean costIsEstimated) setCostUnknown(boolean costUnknown) setDefinedToolNames(List<String> definedToolNames) setDefinedToolTokens(long definedToolTokens) setEstimatedCostUsd(double estimatedCostUsd) setFinishReason(String finishReason) setIndex(int index) setInputTokens(long inputTokens) setLatencyMs(long latencyMs) setMessageCount(int messageCount) setOutputTokens(long outputTokens) setProvider(String provider) setReasoningTokens(long reasoningTokens) setSystemPromptFingerprint(String systemPromptFingerprint) setSystemPromptTokens(long systemPromptTokens) setToolCalls(List<LlmOptimisationReport.ToolCall> toolCalls)
-
Constructor Details
-
Call
public Call()
-
-
Method Details
-
getIndex
public int getIndex() -
setIndex
-
getPath
-
setPath
-
getProvider
-
setProvider
-
getModel
-
setModel
-
getInputTokens
public long getInputTokens() -
setInputTokens
-
getOutputTokens
public long getOutputTokens() -
setOutputTokens
-
getCachedInputTokens
public long getCachedInputTokens() -
setCachedInputTokens
-
getReasoningTokens
public long getReasoningTokens() -
setReasoningTokens
-
getEstimatedCostUsd
public double getEstimatedCostUsd() -
setEstimatedCostUsd
-
isCostIsEstimated
public boolean isCostIsEstimated() -
setCostIsEstimated
-
isCostUnknown
public boolean isCostUnknown()True when the model could not be priced (unknown/unrecognised id, e.g. an Azure deployment name). The call'sestimatedCostUsdis held at0.0for well-defined aggregation, but consumers must NOT render it as a confident $0.00. -
setCostUnknown
-
isApproximateRate
public boolean isApproximateRate()True when the cost was derived from an admitted-placeholder/approximate rate (e.g. gpt-5*). Such a figure is not a billed price;costIsEstimatedis also forced true. -
setApproximateRate
-
getLatencyMs
public long getLatencyMs() -
setLatencyMs
-
getFinishReason
-
setFinishReason
-
getMessageCount
public int getMessageCount() -
setMessageCount
-
getSystemPromptTokens
public long getSystemPromptTokens() -
setSystemPromptTokens
-
getSystemPromptFingerprint
-
setSystemPromptFingerprint
-
getToolCalls
-
setToolCalls
-
getDefinedToolNames
-
setDefinedToolNames
-
getDefinedToolTokens
public long getDefinedToolTokens() -
setDefinedToolTokens
-