diff --git a/read-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/readlocalfile/ReadLocalFileTool.kt b/read-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/readlocalfile/ReadLocalFileTool.kt index 38e074d..78ef951 100644 --- a/read-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/readlocalfile/ReadLocalFileTool.kt +++ b/read-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/readlocalfile/ReadLocalFileTool.kt @@ -37,7 +37,7 @@ class ReadLocalFileTool(private val config: ReadLocalFileConfig?) : } override fun name(): String { - return "Read local file" + return toolId } private fun getFilePath(request: ReadLocalFileRequest): Path { diff --git a/write-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/writelocalfile/WriteLocalFileTool.kt b/write-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/writelocalfile/WriteLocalFileTool.kt index cc175f3..06998f9 100644 --- a/write-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/writelocalfile/WriteLocalFileTool.kt +++ b/write-local-file/src/main/kotlin/io/github/llmagentbuilder/tool/writelocalfile/WriteLocalFileTool.kt @@ -57,12 +57,13 @@ class WriteLocalFileTool(private val config: WriteLocalFileConfig?) : } override fun name(): String { - return "Write local file" + return toolId } private fun calculateSavePath(request: WriteLocalFileRequest): Path { val basePath = StringUtils.trimToNull(config?.basePath) val saveFileDir = Path.of(basePath ?: ".") + Files.createDirectories(saveFileDir) val filename = StringUtils.trimToNull(request.filename) return saveFileDir.resolve(filename ?: UUID.randomUUID().toString()) .toAbsolutePath()