Record Class AgentSummary
- Record Components:
agentName- name of the sub-agent (e.g. "SecurityAuditorAgent")filesScanned- number of Java source files this agent analyzedfindingCount- total findings this agent produced (all severities)criticalCount- number of CRITICAL findings from this agentinputTokens- tokens consumed by prompts sent to Claude APIoutputTokens- tokens consumed by Claude's responsesdurationMs- total wall-clock time for this agent's workretryCount- number of API retries required (0 = no retries)
ReviewReport.
Analogy: like Maven's build time summary per module —
[INFO] workshop-core ... SUCCESS [0.780 s].
Each agent gets its own summary line so the developer can see
which specialist took the longest and how many issues it found.
CERTIFICATION NOTE — Domain 1: Agentic Architecture & Orchestration (27%):
AgentSummary is what the AgentResultAggregator produces for
each sub-agent after the review completes. It lets the orchestrator report
not just what was found, but how each agent performed — a production
multi-agent system must be observable, not just functional.
CERTIFICATION NOTE — Domain 5: Context Management & Reliability (15%):
The inputTokens and outputTokens fields feed into
ReviewReport.totalTokensUsed() and estimatedTotalCostUsd().
Tracking per-agent token consumption is how the system surfaces cost
to the developer and how future runs can be optimized.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentSummary(String agentName, int filesScanned, int findingCount, int criticalCount, int inputTokens, int outputTokens, long durationMs, int retryCount) Creates an instance of aAgentSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.intReturns the value of thecriticalCountrecord component.longReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleEstimated USD cost using Claude Sonnet pricing ($3/M input, $15/M output).intReturns the value of thefilesScannedrecord component.intReturns the value of thefindingCountrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinputTokensrecord component.intReturns the value of theoutputTokensrecord component.intReturns the value of theretryCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentSummary
public AgentSummary(String agentName, int filesScanned, int findingCount, int criticalCount, int inputTokens, int outputTokens, long durationMs, int retryCount) Creates an instance of aAgentSummaryrecord class.- Parameters:
agentName- the value for theagentNamerecord componentfilesScanned- the value for thefilesScannedrecord componentfindingCount- the value for thefindingCountrecord componentcriticalCount- the value for thecriticalCountrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentdurationMs- the value for thedurationMsrecord componentretryCount- the value for theretryCountrecord component
-
-
Method Details
-
estimatedCostUsd
public double estimatedCostUsd()Estimated USD cost using Claude Sonnet pricing ($3/M input, $15/M output). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
filesScanned
public int filesScanned()Returns the value of thefilesScannedrecord component.- Returns:
- the value of the
filesScannedrecord component
-
findingCount
public int findingCount()Returns the value of thefindingCountrecord component.- Returns:
- the value of the
findingCountrecord component
-
criticalCount
public int criticalCount()Returns the value of thecriticalCountrecord component.- Returns:
- the value of the
criticalCountrecord component
-
inputTokens
public int inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public int outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
retryCount
public int retryCount()Returns the value of theretryCountrecord component.- Returns:
- the value of the
retryCountrecord component
-