Record Class SkillCuratorState

java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillCuratorState

public record SkillCuratorState(Instant lastRunAt, long runCount, boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath) extends Record
Persistent state for SkillCurator — kept in skills/.curator_state.json. Records the last run timestamp, run count, paused flag, and a brief human-readable summary.
  • Constructor Details

    • SkillCuratorState

      public SkillCuratorState(Instant lastRunAt, long runCount, boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath)
      Creates an instance of a SkillCuratorState record class.
      Parameters:
      lastRunAt - the value for the lastRunAt record component
      runCount - the value for the runCount record component
      paused - the value for the paused record component
      lastRunSummary - the value for the lastRunSummary record component
      lastRunDurationSeconds - the value for the lastRunDurationSeconds record component
      lastReportPath - the value for the lastReportPath record component
  • Method Details

    • defaults

      public static SkillCuratorState defaults()
    • ofJson

      public static SkillCuratorState ofJson(Instant lastRunAt, Long runCount, Boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • lastRunAt

      public Instant lastRunAt()
      Returns the value of the lastRunAt record component.
      Returns:
      the value of the lastRunAt record component
    • runCount

      public long runCount()
      Returns the value of the runCount record component.
      Returns:
      the value of the runCount record component
    • paused

      public boolean paused()
      Returns the value of the paused record component.
      Returns:
      the value of the paused record component
    • lastRunSummary

      public String lastRunSummary()
      Returns the value of the lastRunSummary record component.
      Returns:
      the value of the lastRunSummary record component
    • lastRunDurationSeconds

      public Long lastRunDurationSeconds()
      Returns the value of the lastRunDurationSeconds record component.
      Returns:
      the value of the lastRunDurationSeconds record component
    • lastReportPath

      public String lastReportPath()
      Returns the value of the lastReportPath record component.
      Returns:
      the value of the lastReportPath record component