MCPcopy Create free account
hub / github.com/OperationT00/T-Code / emitToolResultSummary

Method emitToolResultSummary

src/main/java/com/tcode/agent/Agent.java:615–627  ·  view source on GitHub ↗
(ToolExecutionResult result)

Source from the content-addressed store, hash-verified

613 }
614
615 private void emitToolResultSummary(ToolExecutionResult result) {
616 if (result == null || result.name() == null) {
617 return;
618 }
619 String summary = switch (result.name()) {
620 case "web_search" -> webSearchSummary(result);
621 case "web_fetch" -> webFetchSummary(result);
622 default -> "";
623 };
624 if (!summary.isBlank()) {
625 renderer().stream().println(AnsiStyle.subtle(" → " + summary));
626 }
627 }
628
629 private String webSearchSummary(ToolExecutionResult result) {
630 String text = result.result() == null ? "" : result.result();

Callers 1

executeToolCallsMethod · 0.95

Calls 6

webSearchSummaryMethod · 0.95
webFetchSummaryMethod · 0.95
rendererMethod · 0.95
subtleMethod · 0.95
nameMethod · 0.65
streamMethod · 0.65

Tested by

no test coverage detected