FilesystemTool
abstract class FilesystemTool implements Approvable, Tool, Transient
Traits
Properties
| protected Approval|bool|null | $approvalRequirement | from InteractsWithApprovals |
Methods
Indicate that the tool requires approval before execution.
Indicate that the tool may execute without approval.
Determine whether the tool should request approval for the given request.
Determine whether the given path points to a file, not a directory.
Resolve the filesystem disk the tool operates on.
Details
in
InteractsWithApprovals at line 17
InteractsWithApprovals
requireApproval(string|null $reason = null)
Indicate that the tool requires approval before execution.
in
InteractsWithApprovals at line 27
InteractsWithApprovals
withoutApproval()
Indicate that the tool may execute without approval.
in
InteractsWithApprovals at line 37
Approval|null
shouldRequestApproval(Request $request)
Determine whether the tool should request approval for the given request.
at line 48
protected Approval|bool
needsApproval(Request $request)
Determine whether the tool needs approval for the given request.
at line 23
__construct(Filesystem|string|null $disk = null)
Create a filesystem tool for the given disk.
at line 30
protected bool
fileExists(Filesystem $disk, string $path)
Determine whether the given path points to a file, not a directory.
at line 38
protected Filesystem
disk()
Resolve the filesystem disk the tool operates on.