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 Summary
ConstructorsConstructorDescriptionSkillCuratorState(Instant lastRunAt, long runCount, boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath) Creates an instance of aSkillCuratorStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SkillCuratorStatedefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastReportPathrecord component.Returns the value of thelastRunAtrecord component.Returns the value of thelastRunDurationSecondsrecord component.Returns the value of thelastRunSummaryrecord component.static SkillCuratorStateofJson(Instant lastRunAt, Long runCount, Boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath) booleanpaused()Returns the value of thepausedrecord component.longrunCount()Returns the value of therunCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkillCuratorState
public SkillCuratorState(Instant lastRunAt, long runCount, boolean paused, String lastRunSummary, Long lastRunDurationSeconds, String lastReportPath) Creates an instance of aSkillCuratorStaterecord class.- Parameters:
lastRunAt- the value for thelastRunAtrecord componentrunCount- the value for therunCountrecord componentpaused- the value for thepausedrecord componentlastRunSummary- the value for thelastRunSummaryrecord componentlastRunDurationSeconds- the value for thelastRunDurationSecondsrecord componentlastReportPath- the value for thelastReportPathrecord component
-
-
Method Details
-
defaults
-
ofJson
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
lastRunAt
Returns the value of thelastRunAtrecord component.- Returns:
- the value of the
lastRunAtrecord component
-
runCount
public long runCount()Returns the value of therunCountrecord component.- Returns:
- the value of the
runCountrecord component
-
paused
public boolean paused()Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-
lastRunSummary
Returns the value of thelastRunSummaryrecord component.- Returns:
- the value of the
lastRunSummaryrecord component
-
lastRunDurationSeconds
Returns the value of thelastRunDurationSecondsrecord component.- Returns:
- the value of the
lastRunDurationSecondsrecord component
-
lastReportPath
Returns the value of thelastReportPathrecord component.- Returns:
- the value of the
lastReportPathrecord component
-