Record Class HarnessEvent.SubagentFinished
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.ai.HarnessEvent.SubagentFinished
- Record Components:
result- the subagent's final response text, or an error message whenisErroris true.isError- true if the sub-harness threw;resultthen holds the failure message.
- All Implemented Interfaces:
HarnessEvent
- Enclosing interface:
HarnessEvent
public static record HarnessEvent.SubagentFinished(String result, boolean isError)
extends Record
implements HarnessEvent
Emitted when the sub-harness opened by
HarnessEvent.SubagentStarted returns, carrying its final
response (or error message) so consumers can close out the subagent scope.-
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
ConstructorsConstructorDescriptionSubagentFinished(String result, boolean isError) Creates an instance of aSubagentFinishedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisError()Returns the value of theisErrorrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubagentFinished
-
-
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. -
result
-
isError
-