From fd03b202a87123b726ac2a6c4b50087e9a5abb0f Mon Sep 17 00:00:00 2001 From: huanghuoguoguo <1051233107@qq.com> Date: Wed, 13 May 2026 22:50:21 +0800 Subject: [PATCH] fix(native): update tool descriptions to use register_skill Replace references to removed import_skill_from_directory with register_skill in exec/write/edit tool descriptions. --- src/langbot/pkg/provider/tools/loaders/native.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/langbot/pkg/provider/tools/loaders/native.py b/src/langbot/pkg/provider/tools/loaders/native.py index 6c28f313..b344d7ef 100644 --- a/src/langbot/pkg/provider/tools/loaders/native.py +++ b/src/langbot/pkg/provider/tools/loaders/native.py @@ -237,7 +237,7 @@ class NativeToolLoader(loader.ToolLoader): 'Use this tool for bash commands, Python execution, and exact calculations over ' 'user-provided data. Activated skill packages are addressable under ' '/workspace/.skills/; when running inside one, set workdir to that path. ' - 'To create a new skill package, prepare it under /workspace first, then use import_skill_from_directory.' + 'To create a new skill package, prepare it under /workspace first, then use register_skill.' ), parameters={ 'type': 'object', @@ -303,7 +303,7 @@ class NativeToolLoader(loader.ToolLoader): description=( 'Create or overwrite a file at the given path under /workspace with the provided content. ' 'Activated skill packages can be modified through /workspace/.skills//... . ' - 'For new skills, write files under /workspace and then call import_skill_from_directory.' + 'For new skills, write files under /workspace and then call register_skill.' ), parameters={ 'type': 'object', @@ -331,7 +331,7 @@ class NativeToolLoader(loader.ToolLoader): 'Perform an exact string replacement in a file under /workspace. ' 'The old_string must appear exactly once in the file. Activated skill packages ' 'can be edited through /workspace/.skills//... . ' - 'For new skills, edit files under /workspace and then call import_skill_from_directory.' + 'For new skills, edit files under /workspace and then call register_skill.' ), parameters={ 'type': 'object',