Record Class ToolExecutionStartShellToolInfo
java.lang.Object
java.lang.Record
com.github.copilot.generated.ToolExecutionStartShellToolInfo
@Generated("copilot-sdk-codegen")
public record ToolExecutionStartShellToolInfo(List<String> possiblePaths, Boolean hasWriteFileRedirection, String displayCommand)
extends Record
Shell-aware path hints for a shell tool's command, captured at start time so consumers can snapshot a file's pre-image before the tool runs.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionToolExecutionStartShellToolInfo(List<String> possiblePaths, Boolean hasWriteFileRedirection, String displayCommand) Creates an instance of aToolExecutionStartShellToolInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayCommandrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasWriteFileRedirectionrecord component.Returns the value of thepossiblePathsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolExecutionStartShellToolInfo
public ToolExecutionStartShellToolInfo(List<String> possiblePaths, Boolean hasWriteFileRedirection, String displayCommand) Creates an instance of aToolExecutionStartShellToolInforecord class.- Parameters:
possiblePaths- the value for thepossiblePathsrecord componenthasWriteFileRedirection- the value for thehasWriteFileRedirectionrecord componentdisplayCommand- the value for thedisplayCommandrecord 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). -
possiblePaths
-
hasWriteFileRedirection
Returns the value of thehasWriteFileRedirectionrecord component.- Returns:
- the value of the
hasWriteFileRedirectionrecord component
-
displayCommand
Returns the value of thedisplayCommandrecord component.- Returns:
- the value of the
displayCommandrecord component
-