Record Class ExecuteResponse
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.filesystem.model.ExecuteResponse
- Record Components:
output- combined stdout and stderr output of the executed commandexitCode- the process exit code (0 indicates success, non-zero indicates failure)truncated- whether the output was truncated due to filesystem limitations
Result of code/shell execution.
-
Constructor Summary
ConstructorsConstructorDescriptionExecuteResponse(String output, Integer exitCode, boolean truncated) Creates an instance of aExecuteResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exitCode()Returns the value of theexitCoderecord component.final inthashCode()Returns a hash code value for this object.booleanoutput()Returns the value of theoutputrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
Method Details
-
isSuccess
public boolean isSuccess() -
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 '=='. -
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
exitCode
Returns the value of theexitCoderecord component.- Returns:
- the value of the
exitCoderecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-