Package io.jenkins.plugins.aiagentjob.pi
Class PiLogFormat
java.lang.Object
io.jenkins.plugins.aiagentjob.pi.PiLogFormat
- All Implemented Interfaces:
AiAgentLogFormat
Classifies Pi's JSON print-mode events, not its persisted session entries or RPC responses.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclassify(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a single JSON object into a parsed event.classifyAll(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a JSON object that may contain multiple displayable events.classifyOmpAll(long lineNumber, net.sf.json.JSONObject json) Classifies OMP messages while omitting tool intent metadata from visible tool inputs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jenkins.plugins.aiagentjob.AiAgentLogFormat
classifyRaw
-
Field Details
-
INSTANCE
-
-
Method Details
-
classify
Description copied from interface:AiAgentLogFormatAttempt to classify a single JSON object into a parsed event.- Specified by:
classifyin interfaceAiAgentLogFormat- Parameters:
lineNumber- 1-based line number in the raw log filejson- the parsed JSON object for this line- Returns:
- a classified
AiAgentLogParser.ParsedLine, ornullif this format does not handle the given JSON structure
-
classifyAll
Description copied from interface:AiAgentLogFormatAttempt to classify a JSON object that may contain multiple displayable events.Implementations that emit at most one event can rely on this default. Returning
nullstill means the format did not recognize the input; an empty list means it recognized the input but intentionally produced no visible events.- Specified by:
classifyAllin interfaceAiAgentLogFormat
-
classifyOmpAll
public List<AiAgentLogParser.ParsedLine> classifyOmpAll(long lineNumber, net.sf.json.JSONObject json) Classifies OMP messages while omitting tool intent metadata from visible tool inputs.
-