Class CursorLogFormat
java.lang.Object
io.jenkins.plugins.aiagentjob.cursor.CursorLogFormat
- All Implemented Interfaces:
AiAgentLogFormat
Format-specific log classification for Cursor Agent stream-json output. Handles tool_call events
with started/completed subtypes and various tool call shapes (shell, read, write, etc.).
-
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.
-
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
-