Add ListDirectoryTool (#26549)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2025-03-12 16:17:12 +01:00 committed by GitHub
parent 41eb586ec8
commit 349f57381f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 95 additions and 1 deletions

View file

@ -16,13 +16,15 @@ pub struct ReadFileToolInput {
/// This path should never be absolute, and the first component
/// of the path should always be a top-level directory in a project.
///
/// For example, if the project has the following top-level directories:
/// <example>
/// If the project has the following top-level directories:
///
/// - directory1
/// - directory2
///
/// If you wanna access `file.txt` in `directory1`, you should use the path `directory1/file.txt`.
/// If you wanna access `file.txt` in `directory2`, you should use the path `directory2/file.txt`.
/// </example>
pub path: Arc<Path>,
}