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, ornullwhen 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLifecycle state at the moment the snapshot was taken. -
Constructor Summary
ConstructorsConstructorDescriptionHarnessInfo(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 aHarnessInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentTypeIdrecord component.Returns the value of thecreatedAtrecord component.@Nullable InstantendedAt()Returns the value of theendedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of theinputTokensrecord component.label()Returns the value of thelabelrecord component.Returns the value of thelastActivityAtrecord component.modelId()Returns the value of themodelIdrecord component.longReturns the value of theoutputTokensrecord component.Returns the value of theproviderNamerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.@Nullable StringReturns the value of thetranscriptPathrecord component.intReturns the value of theturnCountrecord component.
-
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 aHarnessInforecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentproviderName- the value for theproviderNamerecord componentmodelId- the value for themodelIdrecord componentagentTypeId- the value for theagentTypeIdrecord componentcreatedAt- the value for thecreatedAtrecord componentlastActivityAt- the value for thelastActivityAtrecord componentendedAt- the value for theendedAtrecord componentturnCount- the value for theturnCountrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentstate- the value for thestaterecord componenttranscriptPath- the value for thetranscriptPathrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
agentTypeId
Returns the value of theagentTypeIdrecord component.- Returns:
- the value of the
agentTypeIdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
lastActivityAt
Returns the value of thelastActivityAtrecord component.- Returns:
- the value of the
lastActivityAtrecord component
-
endedAt
Returns the value of theendedAtrecord component.- Returns:
- the value of the
endedAtrecord component
-
turnCount
public int turnCount()Returns the value of theturnCountrecord component.- Returns:
- the value of the
turnCountrecord component
-
inputTokens
public long inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public long outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
transcriptPath
Returns the value of thetranscriptPathrecord component.- Returns:
- the value of the
transcriptPathrecord component
-