mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-15 23:10:59 +00:00
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.
This commit is contained in:
@@ -237,7 +237,7 @@ class NativeToolLoader(loader.ToolLoader):
|
|||||||
'Use this tool for bash commands, Python execution, and exact calculations over '
|
'Use this tool for bash commands, Python execution, and exact calculations over '
|
||||||
'user-provided data. Activated skill packages are addressable under '
|
'user-provided data. Activated skill packages are addressable under '
|
||||||
'/workspace/.skills/<skill-name>; when running inside one, set workdir to that path. '
|
'/workspace/.skills/<skill-name>; 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={
|
parameters={
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
@@ -303,7 +303,7 @@ class NativeToolLoader(loader.ToolLoader):
|
|||||||
description=(
|
description=(
|
||||||
'Create or overwrite a file at the given path under /workspace with the provided content. '
|
'Create or overwrite a file at the given path under /workspace with the provided content. '
|
||||||
'Activated skill packages can be modified through /workspace/.skills/<skill-name>/... . '
|
'Activated skill packages can be modified through /workspace/.skills/<skill-name>/... . '
|
||||||
'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={
|
parameters={
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
@@ -331,7 +331,7 @@ class NativeToolLoader(loader.ToolLoader):
|
|||||||
'Perform an exact string replacement in a file under /workspace. '
|
'Perform an exact string replacement in a file under /workspace. '
|
||||||
'The old_string must appear exactly once in the file. Activated skill packages '
|
'The old_string must appear exactly once in the file. Activated skill packages '
|
||||||
'can be edited through /workspace/.skills/<skill-name>/... . '
|
'can be edited through /workspace/.skills/<skill-name>/... . '
|
||||||
'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={
|
parameters={
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
|
|||||||
Reference in New Issue
Block a user