Package io.jenkins.plugins.aiagentjob
Class LogFormatUtils
java.lang.Object
io.jenkins.plugins.aiagentjob.LogFormatUtils
Shared utility methods used by agent-specific log format classes. Provides JSON field extraction,
text normalization, and tool input/output helpers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String s) static Stringstatic StringextractText(net.sf.json.JSONObject json) static StringextractToolInput(net.sf.json.JSONObject input, String toolName) static StringextractToolResultContent(net.sf.json.JSONObject json) static StringfirstNonEmpty(net.sf.json.JSONObject json, String... keys) static booleanisToolCall(String typeLower, net.sf.json.JSONObject json) static booleanisToolResult(String typeLower, net.sf.json.JSONObject json) static StringjoinTextArray(net.sf.json.JSONArray array) static String
-
Method Details
-
firstNonEmpty
-
normalize
-
capitalize
-
excerpt
-
extractText
-
joinTextArray
-
extractToolInput
-
extractToolResultContent
-
isToolCall
-
isToolResult
-