mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 23:02:26 +00:00
tweak: bash tool, try to prevent the cd spam
This commit is contained in:
@@ -82,7 +82,7 @@ export const BashTool = Tool.define("bash", async () => {
|
||||
log.info("bash tool using shell", { shell })
|
||||
|
||||
return {
|
||||
description: DESCRIPTION,
|
||||
description: DESCRIPTION.replaceAll("${directory}", Instance.directory),
|
||||
parameters: z.object({
|
||||
command: z.string().describe("The command to execute"),
|
||||
timeout: z.number().describe("Optional timeout in milliseconds").optional(),
|
||||
|
||||
Reference in New Issue
Block a user