Record Class HarnessEvent.SubagentStarted
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.ai.HarnessEvent.SubagentStarted
- Record Components:
agentTypeId- the registry typeId of the subagent that is about to run.
- All Implemented Interfaces:
HarnessEvent
- Enclosing interface:
HarnessEvent
public static record HarnessEvent.SubagentStarted(String agentTypeId)
extends Record
implements HarnessEvent
Emitted by
spawn_subagent immediately before its sub-harness starts running, so
downstream consumers can scope subsequent events to the subagent. Paired with a terminating
HarnessEvent.SubagentFinished on the same thread.-
Nested Class Summary
Nested classes/interfaces inherited from interface HarnessEvent
HarnessEvent.ModelMessage, HarnessEvent.ModelThinking, HarnessEvent.ReplyRejected, HarnessEvent.ResponseTruncated, HarnessEvent.SubagentFinished, HarnessEvent.SubagentStarted, HarnessEvent.TokenSpend, HarnessEvent.ToolCallCompleted, HarnessEvent.ToolCallFailed, HarnessEvent.ToolCallRequested, HarnessEvent.TurnFinished, HarnessEvent.TurnStarted, HarnessEvent.WindowUsage -
Constructor Summary
ConstructorsConstructorDescriptionSubagentStarted(String agentTypeId) Creates an instance of aSubagentStartedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentTypeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubagentStarted
Creates an instance of aSubagentStartedrecord class.- Parameters:
agentTypeId- the value for theagentTypeIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
agentTypeId
Returns the value of theagentTypeIdrecord component.- Returns:
- the value of the
agentTypeIdrecord component
-