Class OpenCodeLogFormat

java.lang.Object
io.jenkins.plugins.aiagentjob.opencode.OpenCodeLogFormat
All Implemented Interfaces:
AiAgentLogFormat

public final class OpenCodeLogFormat extends Object implements AiAgentLogFormat
Format-specific log classification for OpenCode JSONL output. Handles part-based events for text and tool use with nested state objects.
  • Field Details

  • Method Details

    • classify

      public AiAgentLogParser.ParsedLine classify(long lineNumber, net.sf.json.JSONObject json)
      Description copied from interface: AiAgentLogFormat
      Attempt to classify a single JSON object into a parsed event.
      Specified by:
      classify in interface AiAgentLogFormat
      Parameters:
      lineNumber - 1-based line number in the raw log file
      json - the parsed JSON object for this line
      Returns:
      a classified AiAgentLogParser.ParsedLine, or null if this format does not handle the given JSON structure