Record Class HarnessInfo

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.ai.HarnessInfo
Record Components:
transcriptPath - absolute path of this harness's conversation transcript, or null when it writes none. Present a filename rather than the absolute path if this is ever exposed over HTTP.

public record HarnessInfo(UUID id, String label, String providerName, String modelId, String agentTypeId, Instant createdAt, Instant lastActivityAt, @Nullable Instant endedAt, int turnCount, long inputTokens, long outputTokens, HarnessInfo.State state, @Nullable String transcriptPath) extends Record
Immutable snapshot of one AgenticHarness as of the moment its context's harness registry was read. Carries identity, the model it is bound to, and running usage counters, but no handle on the harness itself — a diagnostic page or script can enumerate AI work in progress without being able to drive a conversation it does not own.

Counters advance while a harness is active, so two snapshots of the same id() taken at different times will differ. A snapshot with state() of HarnessInfo.State.CLOSED is final.

  • Constructor Details

    • HarnessInfo

      public HarnessInfo(UUID id, String label, String providerName, String modelId, String agentTypeId, Instant createdAt, Instant lastActivityAt, @Nullable Instant endedAt, int turnCount, long inputTokens, long outputTokens, HarnessInfo.State state, @Nullable String transcriptPath)
      Creates an instance of a HarnessInfo record class.
      Parameters:
      id - the value for the id record component
      label - the value for the label record component
      providerName - the value for the providerName record component
      modelId - the value for the modelId record component
      agentTypeId - the value for the agentTypeId record component
      createdAt - the value for the createdAt record component
      lastActivityAt - the value for the lastActivityAt record component
      endedAt - the value for the endedAt record component
      turnCount - the value for the turnCount record component
      inputTokens - the value for the inputTokens record component
      outputTokens - the value for the outputTokens record component
      state - the value for the state record component
      transcriptPath - the value for the transcriptPath record component
  • Method Details

    • 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 the compare method from their corresponding wrapper classes.
      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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • providerName

      public String providerName()
      Returns the value of the providerName record component.
      Returns:
      the value of the providerName record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • agentTypeId

      public String agentTypeId()
      Returns the value of the agentTypeId record component.
      Returns:
      the value of the agentTypeId record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • lastActivityAt

      public Instant lastActivityAt()
      Returns the value of the lastActivityAt record component.
      Returns:
      the value of the lastActivityAt record component
    • endedAt

      public @Nullable Instant endedAt()
      Returns the value of the endedAt record component.
      Returns:
      the value of the endedAt record component
    • turnCount

      public int turnCount()
      Returns the value of the turnCount record component.
      Returns:
      the value of the turnCount record component
    • inputTokens

      public long inputTokens()
      Returns the value of the inputTokens record component.
      Returns:
      the value of the inputTokens record component
    • outputTokens

      public long outputTokens()
      Returns the value of the outputTokens record component.
      Returns:
      the value of the outputTokens record component
    • state

      public HarnessInfo.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • transcriptPath

      public @Nullable String transcriptPath()
      Returns the value of the transcriptPath record component.
      Returns:
      the value of the transcriptPath record component